https://techygeekshome.info/2014/04/configuration-manager-sql-query-for/
Configuration Manager SQL Query for Installed Software Per Machine & Per Collection