Script sh for shutdown

Hi, i need shutdown a pc, is in the same network
what command i can use in the script :o ?

You may be able to use SSH for this task, for example:

ssh root@yourmachine.net 'shutdown -h'