Now powershell has $OFS(output field separator) but don't have "output record separator" like awk's ORS.So when we don't want to start a new line with all lines, we have to use Write-Host -NoNewline.Or, when we want to start a new line twice with a record, we have to add '`n' to all lines.EamplePowerShell > 1..5 # default record separator is '`n' 12345PowerShell > $ORS = '' # no separator for recordsPowerShell > 1..512345PowerShell > $ORS = ',' # record separator is ','PowerShell > 1..51,2,3,4,5PowerShell > $ORS = "`n`n" # record separator is '`n`n'PowerShell > 1..512345