I have a PowerShell script that either adds text to lines, or creates lines if a file is blank, however it invalidates the file (which should be a simple text file, but with