The problem here is with “Get-ExecutionPolicy” value is Restricted. We have to change it to Unrestricted
Step 1
Open Windows PowerShell with Run As Administrator
Step 2
Execute the following command
Get-ExecutionPolicy
The result you will see is Restricted

Step 3
Execute the following command
Set-ExecutionPolicy Unrestricted



