You can directly access command line in ESXi 5.x either through the console (so called ESXi Shell) or using SSH with something like PUTTY. First enable it through vSphere Client (Configuration -> Security Profile -> Services -> ESXi shell / SSH -> Options -> Start) or console menu (F2 -> login as user with root privileges -> Troubleshooting Options -> Enable ESXi Shell / Enable SSH).
Put Host in to Maintenance Mode
Virtual machine operations
vim-cmd vmsvc/getallvms – list all VMs registered on the host, better viewed in a wide PUTTY window!
* in the following commands replace <vmid> with virtual machine ID (Vmid) obtained by running the previous command, see screen shot below
vim-cmd vmsvc/power.getstate <vmid> – show power state of a VM
vim-cmd vmsvc/power.shutdown <vmid> – shutdown a VM gracefully (using VMwareTools installed on the guest)
vim-cmd vmsvc/power.on <vmid> – power on a VM (if powered off)
vim-cmd vmsvc/get.summary <vmid> – get summary information for a VM
..and with extreme caution…