Power.CLI (VMware) - which ESXi host to deploy a new VM

Since we've got a few ESXi hosts and over a dozen VMFS(s), it usually takes some time to choose the least overloaded host and datastore. I decided to write the following Powershell script to make this thing easier:

stats

You can download my script from here and customize it to your needs - especially the part where the password for each ESXi host is generated.