Source: Technet Script Center
Example:
.\getInstalledAppsFromRegistry.ps1
$apps = Get-InstalledAppsFromRegistry
$apps | where {$_.DisplayName -like "*Firefox*"}
You will get results like:
Publisher : Mozilla
DisplayName : Mozilla Firefox 51.0.1 (x86 en-US)
NoModify : 1
UninstallString : "C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe"
APP_GUID : Mozilla Firefox 51.0.1 (x86 en-US)
Comments : Mozilla Firefox 51.0.1 (x86 en-US)
DisplayVersion : 51.0.1
URLInfoAbout : https://www.mozilla.org
APP_Architecture : 32
URLUpdateInfo : https://www.mozilla.org/firefox/51.0.1/releasenotes
NoRepair : 1
InstallLocation : C:\Program Files (x86)\Mozilla Firefox
DisplayIcon : C:\Program Files (x86)\Mozilla Firefox\firefox.exe,0
EstimatedSize : 94368
HelpLink : https://support.mozilla.org