1. The Get-VMHost cmdlet gets all ESXi nodes
2. With a single value in $hostname you get 1 ESXi node.
With just Get-VMHost, no value for the -Name parameter, you get all ESXi nodes (see 1.)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference