title: Select-Object not selecting object from csv-file
body: <p>I'm trying to import some csv files to further work with them and export them in the end. They all have two header lines from which i'll only need the second one. I also need to delete most columns except a few. Unfortunately it seems you'll need to decide if you want to skip rows with <code>get-content</code> <em>or</em> exclude columns with <code>import-csv</code>. Neither of those can't do both, so i got a workaround:</p>
  <pre><code>$out=&quot;bla\bla\out.csv&quot;
  
  $in=&quot;bla\bla\in.csv&quot; 
  
  $header= (get-content $in -TotalCount 2 )[-1]
  
  $out = Import-csv $in -Header $header -Delimiter &quot;;&quot;|select column1 | Export-Csv -Path $out -NoTypeInformation
  </code></pre>
  <p>this returns an empty csv with the header name column1. What am i doing wrong?</p>
  <p>Edit:</p>
  <p>The input csv looks like:</p>
  <pre><code>filename;filename;...
  column1;column2;...
  1;a;...
  2;b;...
  ...
  </code></pre>
  <p>I guess that <code>-Header</code> can't read arrays without single quotation marks, so i'm trying to find a solution to that atm.</p>