xxxxxxxxxx
Please subscribe my channel if this answer helped you -
https://www.youtube.com/channel/UC7VZwb9aNdIr8_EoqdbOtIQ?sub_confirmation=1
To fix this error we have to change powershell execution policy to remotesigned.
below you will see commands to do that -
(First and last commands are optional, those commands are to get the current
execution plicy)
$ Get-ExecutionPolicy (optional)
$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$ Get-ExecutionPolicy (optional)
Video Tutorial - https://youtube.com/watch?v=2xtKqu40Rcw&