How to shutdown android via ssh command?
reboot -p


was mentioned here which works for me on a rooted device. But someone mentioned here (see comments as well) that it's a bit harsh to simply shutdown without notice. So try something like this:

su -c 'am broadcast android.intent.action.ACTION_SHUTDOWN &amp;&amp; sleep 5 &amp;&amp; reboot -p'