I attached the script to the post containing the script.
Do you know that you can connect to all you vCenter server at the same time after setting your PowerCLI Configuration to Multiple with the following command?
Set-PowerCLIConfiguration-DefaultVIServerModeMultiple-ScopeUser