Check out example codes for "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.". It will help you in understanding the concepts better.

Code Example 1

Set-ExecutionPolicy Unrestricted -Force

Code Example 2

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

Code Example 3

PS C:\> Set-ExecutionPolicy RemoteSigned

Code Example 4

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Code Example 5

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Learn ReactJs, React Native from akashmittal.com