Solution 1: Change Execution Policy Temporarily
Run the below command in PowerShell (Admin):
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Solution 2: Change Execution Policy Permanently If you want a permanent fix, run PowerShell as Administrator and execute below command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser