title: Create list headers and combine
body: <p>I want to create a bunch of lists, with a header where the list members are dynamic in size. </p>
  
  <p>Then I want to combine the lists to make an array, or csv for export. </p>
  
  <p>I've tried</p>
  
  <pre><code>$a = new-object psobject
  $a | add-member ...
  </code></pre>
  
  <p>However the value on this does not accept variables of 'system.array' type,the objects show up as one continuous string, not two objects on separate lines.</p>
  
  <p>I've tried :</p>
  
  <pre><code>$a = New-Object System.Collections.Generic.List[System.Object]
  $a.add()
  </code></pre>
  
  <p>but I can't create a header with this list.</p>
  
  <p>Here's a sample of what i want the final product to look like</p>
  
  <pre><code>col1     col2     col3
  admin    karl     john
  jake     rupert   pinko
  drumpf            deckard
  </code></pre>
  
  <p>where the names of the columns are pulled from different servers in the domain, and will have a dynamic length every time i run the script - then i want to export it as a csv. </p>
  
  <p>Thanks,</p>