Find MSI GUID using PowerShell

So a lot of times I am looking for App (MSI) GUID to send an Uninstall command for Apps using Intune or for Detection rules in Intune/SCCM. You have 2 choices. Either you go to registry and find one manually (Pain in the back) or run this small script in PowerShell to find MSI GUID

Get-CimInstance -ClassName Win32_Product | Sort-Object -Property Name | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

You will get similar output.

First column which is identifying number is your UUID