If you want to execute a Powershell script as an administrator then you should select "Run this script using the logged on credentials" to No while creating a Powershell script deployment from Intune admin center.
Refer to this link for more detailed information: https://cloudinfra.net/how-to-deploy-a-powershell-script-using-intune/
--If the response is helpful, please click "Accept Answer" and upvote it.--