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

Code Example 1

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Learn ReactJs, React Native from akashmittal.com