Check out example codes for "restart remote computer cmd using ip address". It will help you in understanding the concepts better.

Code Example 1

shutdown -m \\192.168.1.25 -r -f

Learn ReactJs, React Native from akashmittal.com