title: Get name value of a powershell object property into a string
body: <p>I have imported a csv file</p>
  
  <pre><code>$infile = import-csv .\myfile.csv
  </code></pre>
  
  <p>Now I can show the columns (now object properties) by</p>
  
  <pre><code>$infile | gm -type NoteProperty
  
  Name      MemberType
  
  -------   ----------
  
  Column1   NoteProperty
  
  Column2   NoteProperty
  
  etc...
  </code></pre>
  
  <p>What I want to do is get the value of the <code>Name(Column1..)</code> into a variable.</p>