Check out example codes for "tsc.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 -ExecutionPolicy RemoteSigned

Code Example 2

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Learn ReactJs, React Native from akashmittal.com