Very informative response and I agree resource pools should not be used for organizing VMs. I prefer not to use them at all. But this is a customers environment and I can only make recommendations. With that said collecting this data for a capacity trending report it should not come from resource pools but more from the cluster/host layer given HA requirements. Collecting data for performance and troubleshooting would make more sense to pull from resource pools if needed.
For the sake of cleaning up these scripts to the nature of the reports do you have any suggestions? Being new to PowerShell and PowerCli I am looking for examples to help me grasp on to the concepts. I am currently reading and studying "VMware vSphere PowerCLI Reference: Automating vSphere Administration" and a Powershell book.. Haven't found a good mapping reference site/book for extracting the correct information from vCenter. Any help you give is greatly appreciated.
Thanks again,
JB