How to force a Mac to restart without pressing the power key?
ssh onto your Mac
Type sudo su -l to switch to superuser mode
Enter your admin password
type halt and hit enter  


This sends SIGTERM (and subsequently SIGKILL) to all running processes and powers the system off. 

Note: Type man halt for other options.  

EDIT: You could also try launchctl shutdown