title: How do I loop through a dataset in PowerShell?
body: <p>I am trying to output values of each rows from a <code>DataSet</code>:</p>
  <pre><code>for ($i=0;$i -le $ds.Tables[1].Rows.Count;$i++)
  {
    Write-Host 'value is : ' + $i + ' ' + $ds.Tables[1].Rows[$i][0]
  }
  </code></pre>
  <p>gives the output ...</p>
  <pre><code>value is :  +0+ +System.Data.DataSet.Tables[1].Rows[0][0] 
  value is :  +1+ +System.Data.DataSet.Tables[1].Rows[1][0] 
  value is :  +2+ +System.Data.DataSet.Tables[1].Rows[2][0] 
  value is :  +3+ +System.Data.DataSet.Tables[1].Rows[3][0] 
  value is :  +4+ +System.Data.DataSet.Tables[1].Rows[4][0] 
  value is :  +5+ +System.Data.DataSet.Tables[1].Rows[5][0] 
  value is :  +6+ +System.Data.DataSet.Tables[1].Rows[6][0] 
  </code></pre>
  <p>How do I get the actual value from the column?</p>