Like this?
[pscustomobject]@{ 'Number of Hosts' = (Get-VMHost).Count
'Number of VMs' = (Get-VM).Count
'Number of Templates' = (Get-Template).Count
'Number of Clusters' = (Get-Cluster).Count
'Number of Datastores' = (Get-Datastore).Count
'Number of Datastore Clusters' = (Get-DatastoreCluster).Count
}
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.