Get-InstalledPrograms-via-wmi change to support pshell 2.0

needed to strong-type a string, fixed a variable declaration bug.