Thanks so much LucD, this looks fantastic.
One question before I take it for a spin, I am running vSphere 4.1 at the moment.
Will this script function from powercli 4.1?
Thanks again,
Mitch
PS - I am in awe of the speed at which you were able to knock this together for me.