title: In PowerShell, how can I extract a key-value pair from an array of records?
body: <p>I am reading data from a CSV file and want to extract the URL value (abc.com, def.com).  My simple code returns the data in an array of key-value pairs (see below), but I haven't been able to extract an individual item.  </p>
  
  <p>@{Product=a; Description=xyz; URL=abc.com}</p>
  
  <p>@{Product=b; Description=abc; URL=def.com}</p>
  
  <p>I tried indexing into the array, using IndexOf, etc.  Any suggestions?</p>
  
  <pre><code>    $list = Import-Csv ".\file"
  
      foreach ($item in $list) {
  
          write-host $item
      }
  </code></pre>