If you want to power off hung virtual machine ,
Try these command
1. Take process id and kill
ps | grep vmx
kill -9 <pid> 300731
Method-2:- take vmid and use this command
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.off <vmid>
Method-3 :- By world ID
esxcli vm process list ( take world id)
esxcli vm process kill -t=soft -w=wordid