Take a look at this document for the details and examples - http://communities.vmware.com/docs/DOC-10279
FYI - I would recommend you download the script from vGhetto Script Repository on Sourceforge as it has the latest version of the script
Thanks