title: Script to append the file
body: <p>This is the end of my script. I am looking to make this code append the data every time it's run. Currently it overwrites the file. I can paste the whole script if needed.</p>
  
  <pre><code>Write-Host "Contents of ArrayPath:"
  #$PathArray | ForEach-Object {$_}
  $PathArray | % {$_} | Out-File "C:\SearchString\Output.txt"
  </code></pre>