The Consumed and Active entries for CPU and memory can be done through calling the Get-Stat cmdlet with the corresponding counters.
And that for the Realtime interval and for all VMs in the cluster.
Once you have the metrics, you can subdivide per ESXi host by using the Group-Object cmdlet.