Following is the error received while trying to set python-venv or npm-init in visual-studio-code.
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at xxx. Category-Info: Security-Error: (:) [], PS-Security-Exception Fully-Qualified-Error-Id : Unauthorised Access
This is because the user your running the script as has a undefined ExecutionPolicy
Open your powershell and write this command.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Also take reference from cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at