how do i find the limits of a command?... i have found some powercli commands will not do what they are ment to do... jest reterning information instend of getting the esxi host to complete the task.
like
$server=192.168.1.5
Set-VMHost -VMHost $server -State "Maintenance" -RunAsync
that should set the esxi host into Maintenace mode.