This video shows the PowerShell code to query the programs and features. It also includes the gotchas and tips on the process.
No download links available.