Hi,
Since the current execution policy is Restricted, no PowerShell script is allowed to run on your machine so you have to run that command in the console. But why not just run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Is there any reason to set the scope to Process?
Best Regards,
Ian Xue
============================================
If the Answer 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.