Generate a list of installed programs with PowerShell code