For more VMware related PowerCLI scripts visit a couple of these great blogs.

http://www.virtu-al.net/ http://www.lucd.info/