I found a way to fix this error. It is as follows,
First Open powerShell as Run as Administrator.
Then, run this command in PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
After that type Y
and press enter.
CLICK HERE to find out more related problems solutions.