title: How can I add the header to a text file?
body: <p>How can I add the header to a top of text file using PowerShell? I have tried using the below code like:</p>
  
  <pre><code>Add-Content -Path E:\BHS_output_1.txt -Value (Get-Content "E:\header.txt")
  </code></pre>