https://credibledev.com/powershell-scripts-in-intune/
Deploy PowerShell Scripts in Intune - 3 Easy Methods