Microsoft Intune utilizes the Intune management extension to deploy PowerShell scripts to Windows 10 and later devices. This extension enhances modern management by allowing administrators to run scripts in either the system context or using logged-on user credentials. Scripts execute before Win32 apps and are automatically retried up to three times if an initial failure occurs during check-in.
Source