Hello-
To get the number of physical CPUs for all VMHosts, by cluster, you can use something like
Get-Cluster | select name,@{n="NumVMHostCPU"; e={(Get-VMHost-Location$_ | Measure-ObjectNumCpu).Count}}
That should give something like:
Name NumVMHostCPU ---- ------------ myCluster0 24 myCluster1 32
How does that do for you?