Useful command can be used in esxi shell or ssh mode
vim-cmd vmsvc/power.getstate <vmid> - show power state of a VM
vim-cmd vmsvc/power.shutdown <vmid> - shutdown a VM (shutdown guest)
vim-cmd vmsvc/power.reset <vmid> - reset a VM
vim-cmd vmsvc/power.off <vmid> - power off a VM
vim-cmd vmsvc/power.on <vmid> - power on a VM
vim-cmd vmsvc/power.reboot <vmid> - reboot a VM
vim-cmd vmsvc/get.summary <vmid> - get summary information for a VM
vim-cmd vmsvc/unregister <vmid> - unregister a VM from a host