Some useful PowerShell commands

Check version of PowerShell with following command-

get-host | select-object version

 

Set unrestricted execution to current user

Set-ExecutionPolicy -Scope CurrentUser Unrestricted

This should also the following error when trying to execute a script – cannot be loaded because running scripts is disabled on this system.