Move a VM with Powershell

$SourceHost = "SERVER1"
$DestHost = "SERVER2"
$VM = "VMToBeMoved"
$DestPath = "d:\hyper-v"

Move-VM -ComputerName $SourceHost -Name $VM -DestinationHost $DestHost -DestinationStoragePath $DestPath