nodemon.ps1 cannot be loaded because running scripts is disabled on this system code example

Example 1: \ng.ps1 cannot be loaded because running scripts is disabled on this system.

Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "RemoteSigned"

Example 2: nodemon cannot be loaded because running scripts is disabled on this system

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Example 3: artillery annot be loaded because running scripts is disabled on this system

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

Example 4: File C:\Users\skill\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

//open windows command shell as administrator and run command
Set-ExecutionPolicy Unrestricted

Example 5: tsc.ps1 cannot be loaded because running scripts is disabled on this system

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned