Found the earlier postings and came up with this:
$hosthba = Get-VMHostHBA -type FibreChannel | Select VMHost,Device,PortWorldWideName
foreach ($hostwwn in $hosthba){
$hostwwn.PortWorldWideName = "{0:x}" -f $hostwwn.PortWorldWideName
}
$hosthba | Sort VMHost,Device | export-csv hbainfo.csv -notypeinformation
Yours is much more elegant than mine as usual!