This one liner will query each host and id its cluster total vms and how many VMs are powered on Get-VMHost | Select @{N="Cluster";E={Get-Cluster -VMHost $_}}, Name, @{N="Total_VMs";E={($_ | Get-VM).Count}},@{N="Powered_On";E={($_ | get-vm | ? {$_.powerstate -like "*ON*"}).count}} | Sort Cluster, Name | fl
These are just random notes and programs that may have incomplete descriptions. Any scripts or programs use at your risk