Do you also get those blank lines when you change the last line to
$allvms | Export-Csv "D:\temp\computers.csv" -NoTypeInformation -UseCulture
Do you also get those blank lines when you change the last line to
$allvms | Export-Csv "D:\temp\computers.csv" -NoTypeInformation -UseCulture