shutdown
On the system that you want to shutdown, you need to have (in the sharing preferences) "Remote login" enabled.
Once this is done, from your computer you can open a terminal session and type: ssh computer_name
It will ask you for login credentials. After you enter them you can issue commands as if you were on a local terminal (including shutdown).
An alternative is to use the Apple Remote Desktop tools.
HTH