The first step: vim-cmd vmsvc / getallvms see all virtual machines Vmid number
Step two:
Close VM: vim-cmd vmsvc / power.off [Vmid]
The virtual machine: vim-cmd vmsvc / power.on [Vmid]
Restart the virtual machine: vim-cmd vmsvc / power.reset [Vmid]
third step:
Gets the virtual machine's current state: vim-cmd vmsvc / power.getstate 3