title: Flattening an array in powershell
body: <p>I have some code that pulls from an API into a variable called <code>$table</code>.  I can export this variable to a csv with no issues, except the last field in the table (<code>$table.userdefinedfields</code>) exports as a <code>SystemObject[]</code>.</p>
  <p>What I would like is a 3 column table consisting of the 1st and 3rd fields of <code>$table</code> and the 29th field of the <code>SystemObject[]</code>.</p>
  <p>I am not too well versed in powershell, but this must be possible.</p>
  <p>Any ideas?</p>