What type of vmotion and what are your requirements around such?
This construct will get the first 10 Powered on VMs *by name* from a host. Perhaps it will help.
$hostname = "your-esxi-host"
Get-VMHost $hostname | Get-VM | Where-Object {$_.PowerState -eq "PoweredOn"} | Sort-Object Name | Select -First 10