Your system is blocking script execution due to PowerShell’s execution policy settings. To fix this, follow these steps:
Solution: Change Execution Policy
- Open PowerShell as Administrator
- Click Start, type PowerShell, right-click Windows PowerShell, and choose Run as administrator.
- Run the following command to allow script execution: powershellCopy code
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- If prompted, type Y and press Enter.
- Try running your script again.
Leave a Reply