Thank you for your advice. Thats the exact same thing I have been looking at, only I cant get it to work. It might be because I dont understand the code needed. I need to issue an IP adress or a name, possibly a port, user name and a password to the script. Then have the script reboot a game server. Not the computer itself but the game. Has any of you tried to do that?