These two lines of Powershell script are all you need to VMotion all virtual machines from one ESX host to another:
Get-VIServer 10.18.138.187 -User "scriptuser" -Password "vmware"
Get-VMHost sc-gallium07 | Get-VM | Move-VM -Destination (Get-vmhost sc-gallium04)
If you have Powershell and the VI-toolkit installed on a Windows box you run this little script and you have just scripted a VMotion.