How to shutdown machine remotely?

I want to shutdown a computer remotely with telnet.
I tried “shutdown -b” which can work locally . But after show the words “Shutting down apps…”, telnet lost connect with the remote host, and the remote machine is dead.
If I just try “shutdown”, it can work correctly and the remote machine can be rebooted.
What is the problem?
Thanks!

try shutdown -n <node_info>

mention your remote node info in the last field.

-Marc