title: Select-Object of multiple properties
body: <p>I am trying to find an elegant way to put the metadata of a table of type System.Data.DataTable into a multi-dimensional array for easy reference in my program. My approach to the issue so far seems tedious.</p>
  
  <p>Assuming <code>$DataTable</code> being the <code>DataTable</code> in question</p>
  
  <p>What I tried to do so far was:</p>
  
  <pre><code>$Types = $DataTable.Columns | Select-Object -Property DataType
  $Columns= $DataTable.Columns | Select-Object -Property ColumnName
  $Index = $DataTable.Columns | Select-Object -Property ordinal
  $AllowNull  = $DataTable.Columns | Select-Object -Property AllowDbNull
  </code></pre>
  
  <p>Then painfully going through each array, pick up individual items and put them in my multi-dimensional array <code>$TableMetaData</code>.</p>
  
  <p>I read in the documentation of <code>Select-Object</code> and it seems to me that only 1 property can be selected at 1 time? I think I should be able to do all the above more elegantly and store the information in <code>$TableMetaData</code>.</p>
  
  <p>Is there a way to easily pick up multiple properties and put them in a multi-dimensional array in 1 swoop?</p>