I have the following test script:
If you want to open the file in Windows notepad, you must use Windows line breaks: \r\n
\r\n