Remove blank linesin powershell output : When I run any command like:

    Get-Host | Select Name, Version | Format-List
It returns the output with lots of blank lines.

tried to add -ExpandProperty to my code so it looks like:

    Get-Host | Select -ExpandProperty Name, Version | Format-List 
but it still leaves me with one blank line at the end of the output. any way to remove also the last blank line?