Don’t do that: I often see people who use multiple lines “Write-Host” to add new lines on the screen (as Write-Host send the output only to the screen).
1 2 3 |
Write-Host Write-Host "Output" Write-Host |
Do that: You can use the special character `n for new line: "`nOutput`n"
The result is the same but requires only one line.
Note: You can use Here-String in case you have to deal with multiple special characters:
1 2 3 4 5 |
$hereString = @" Output "@ |