I have 2 different scripts with line breaks. One of them won't make line breaks without "`n" at the end of each line. See this example with and without the "`n".
But other scripts work without the "`n" tag.
write-host "
This is a test message
This is 2 lines down.
"
Output:
This is a test message This is two lines down.
What makes them different where they do or don't need the "`n". They are both .ps1 extensions. And, as you can see, they are at the start of the script. Why do some scripts show the line breaks with the "`n" and others don't need it?



Write-Hostcall's output in your first script. Does your first script contain hidden control characters or is unusual in some other respect? Also, you seem to be using the ISE, so let me offer the standard advice in the next comment: