Hi,
The default execution policy for Windows client is restricted which prevents running of all script files. You can change the execution policy by running
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.