You could do something like this
foreach($esxcli in Get-VMHost | Get-EsxCli -V2){
$esxcli.hardware.platform.get.Invoke() |
Select @{N='VMHost';E={$esxcli.VMHost.Name}},VendorName,ProductName,SerialNumber
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference