How can the Intune EnterpriseDesktopManagement MSI Registry Key be easily Identified?

When troubleshooting Intune Line-of-Business applications deployments you need to find the registry key for the application under HKLM:\Software\Microsoft\EnterpriseDesktopManagement\S-0-0-00-0000000000-00000000000-00000000000-0000000000-00\MSI. This can be time-consuming. Is there an efficient way of doing this? The most effective way I’ve come up with myself is to iterate through the keys and look for a $_.ProductCode match. This fairly effective, but…