Use “esxcli vm process list” to list the running VMs using esxcli. However, you can also use “vim-cmd vmsvc/getallvms” which includes the virtual machines in powered off state.