Check out example codes for "full shutdown windows 10 cmd". It will help you in understanding the concepts better.

Code Example 1

shutdown /s /f /t 0

Learn ReactJs, React Native from akashmittal.com