title: PowerShell add spaces at end of line
body: <p>I have a text file with multiple lines and each line needs to be exactly 700 characters long. Below is what I have and for it to work I have to add spaces after $_ until the line is exactly 700 characters long. I'm wondering if there is way where I can specify a number and it uses that to add the number for spaces after each line?</p>
  
  <pre><code>get-content test.txt | ForEach-Object {Add-Content output.txt "$_ "}
  </code></pre>