get program version powershell code example Example: PowerShell command list software windows server 2016 Get-WmiObject -Class Win32_Product