vMotion is a feature of the vCenter so the host them self doesnt know about.
- Install PowerCLI on Windows(Powershell)
- Install vSphere CLI on Linux/Windows (Perl)
- Write a Script which connects against vCenter and perform a vMotion
There is a REST API comming around the corner within the new 6.7 vCenter. Rest means URLs which often ends up in a one-line so a cURL or Wget can be used and the later one is available in the Busybox of a ESXi. But i preferer to use my admin PC for that kind of jobs.
Regards
Joerg