@NM Thanks for posting in our Q&A.
For this permission issue, based on my research, I find that if we want to run the powershell script, we should make sure that the properties of the PowerShell script are set to Run this script using the logged on credentials and the signed in user has the appropriate permissions to run the script. We can read the following article about using PowerShell scripts on Windows 10 devices in Intune as a reference.
So, we need to set the user permission manually, rather than via Intune.
Thanks for understanding and have a nice day.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.