Check out example codes for "\ng.ps1 cannot be loaded because running scripts is disabled on this system.". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com