Redirecting to
https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/automate-mde-extension-status-checks-with-powershell/4386589