Scripting

VM Ware ES Xi

VMWARE ESXi? Shell Commands

Show running processes (vms)

esxcli vm process list

Terminate each one:

esxcli vm process kill --type=force --world-id=<id>

Can also use type of hard or soft, although if you are at the stage of needing esxi, then you likely need force.