title: Powershell Add-content Out-File Text is wrong
body: <p>When i use this:</p>
  
  <pre><code>"$LogTime $CurrentDate Invalid Archive Grouping selected. You selected '$ArchiveGrouping'" | Out-File $LogFile -Append -Force 
  </code></pre>
  
  <p>To write to a file i generated with this code:</p>
  
  <pre><code>$Logdate = Get-Date
  $Logname = $Logdate.ToString("yyyyMMdd") + ".txt"
  Add-Content -Path C:\ArchiveStorage\$Logname "Log" -force
  $LogFile = "C:\ArchiveStorage\$Logname"
  </code></pre>
  
  <p>The Text in the file looks weird it looks like this:
  <img src="https://i.stack.imgur.com/N3FdP.png" alt="enter image description here"></p>
  
  <p>if i change the code to just write to an existing file like:</p>
  
  <pre><code>$LogFile = "C:\ArchiveStorage\Log.txt"
  </code></pre>
  
  <p>The text file is as it should be:
  <img src="https://i.stack.imgur.com/JdZuW.png" alt="enter image description here"></p>
  
  <p>why does it make spaces and all that random crap ?</p>