Hi community! Sorry this is so rudimentary. Can someone offer advice on how to better format the output from the below? As it is, it just prints it out with no formatting- I want to output it like the output of format-table and I'd like to have zero decimal places in the output of Write-Host $CurrentItemHdd.CapacityGB. Thanks!
foreach ($VmItem in $MyVms)
{
$CurrentItemHdd = Get-HardDisk -VM $VmItem
Write-Host $VmItem.Name $CurrentItemHdd.CapacityGB
}