title: Powershell - Add a column value to a variable
body: <p>I have to do a powershell script with a csv file and I need to set a value for a variable which is an entire column like this an ONLY this column:</p>
  
  <p><a href="http://i.stack.imgur.com/lk3Xq.png" rel="nofollow">csv file</a></p>
  
  <p>I have already do this :</p>
  
  <pre><code>$fichierCSV = "C:\file.csv"
  $listetel = Import-Csv $fichierCSV -Delimiter "t" 
  </code></pre>
  
  <p>Do anybody know how to set a value in a variable to contains this column ?</p>
  
  <p>Thanks for your help.</p>
  
  <p>EDIT :</p>
  
  <p>I've done that :</p>
  
  <pre><code> $listetel = Import-Csv $fichierCSV -Delimiter "t"  | select Noannuaire, NewPropertyName
  Write-Host $listetel
  </code></pre>
  
  <p>And when i launch, this return me that:</p>
  
  <pre><code>@{Noannuaire=; NewPropertyName=} @{Noannuaire=; NewPropertyName=} @{Noannuaire=; NewPropertyName=}
  </code></pre>
  
  <p>Do anybody have a solution? :/</p>
  
  <p>EDIT2: I've do this:</p>
  
  <pre><code>$listetel = Import-Csv $fichierCSV -Delimiter "t"  | select Noannuaire, NewPropertyName
  $listetel |ft
  </code></pre>
  
  <p>But now the window show me this:</p>
  
  <p><a href="http://i.stack.imgur.com/eLcnD.png" rel="nofollow">csv2</a></p>
  
  <p>I don't know if it's a problem with my csv file, anybody have an idea?</p>