$applicationDisplayName = "Your Application Name" # Replace with the name of the application you want to check $regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" $installedApps = Get-ItemProperty -Path $regPath | Where-Object { $_.DisplayName -eq $applicationDisplayName } if ($installedApps) { Write-Host "$applicationDisplayName is installed." } else { Write-Host "$applicationDisplayName is not installed." }