That code is not working...
PS C:\> .\vcenter_startup.ps1
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At C:\vcenter_startup.ps1:2 char:32
+ ping 127.0.0.1 -n 120 -w 1000 & <<<< gt; null
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed