Please run the script procedure as either System User or Logged in user.
The script stops and starts the given Service through the variable service_name='Netman'. Please give the valid Service Name otherwise the service can not be restarted.
service_name='Netman'