Hi,@Bert Schillemans
Thank you for posting in our forum
According to the information I searched, maybe this article can help you
Because we are not a professional scripting forum, you can go to the scripting forum to follow more professional help
reference:https://www.reddit.com/r/SCCM/comments/ac8fyj/scriptquery_to_enumerate_all_applications_with
https://social.technet.microsoft.com/Forums/Windows/en-US/home?forum=winserverpowershell
Hope this information can help you
Best wishes
Vicky