I need something simple.
I have the command Get-HVMachineSummary. I need the "-state" parameter to get more than one value. ie: I need to see the vms that are in AVAILABLE or PROVISIONED state and count them.
I tried something with the command below
(Get-HVMachineSummary -PoolName $pool -state (PROVISIONED or AVAILABLE)).count