Just figured out a way to shutdown ESXi 5.1 from the ESXi shell - and it seemed to work on the free edition as well as the paid version of ESXi.
It uses the vim-cmd and the new esxcli commands together to accomplish the goal. Need to write a full script for this now!!
Here's the link to the full blog post.