title: Out-file format
body: <p>I am writing a script that after each iteration through a loop (array of selected services) it will gather the 4 values for each service that are: server name, service name, service state, and service start name</p>
  
  <p>So for each iteration, I would like to output the 4 mentioned values to an external file (txt, svc, or html) such that each value will be arranged in its own column. Currently I use tab `t to arrange the values in each column but it doesn't work quite well because some service name is a lot longer or a lot shorter so it screws up the column alignment. What other approach do you suggest so all columns are aligned properly</p>
  
  <p>Below is a snippet of my script on how I currently format the output to a txt file</p>
  
  <pre><code>ForEach($service in services)
      $startname = $service.startname
      $state = $service.state
      $servicename = $service.name
      write-output "$server `t $servicename `t $state `t $startname is current" | out-file -append $ScriptDirectory
  </code></pre>