Query Windows Updates Installation update on a PC
Get-WmiObject -ComputerName HOSTNAME -query “Select *from CCM_SoftwareUpdate” -namespace “ROOT\ccm\clientsdk”
Another way
wmic qfe list
Get-Hotfix
/** Search a specific KB installation status **/
Get-Hotfix KB5032189
wmic qfe | find "KB5033327"