Please Refer this script if you want to Restart ITSM Services from a different system within the same network
1.Before running this script its mandatory to run a Setup WinRM service script from the following link https://scripts.comodo.com/frontend/web/topic/setup-winrm-service-in-computer.
2.In Username give the username of the remote pc
3.In Password give the password of the remote pc
4.In remote_pc_ip give the ip address of the remote pc
5.In ps_cmd give the powershell command of your choice
Please Run this script as logged in user