title: Invoke-WebRequest All Elements
body: <p>I am using the <code>Invoke-WebRequest</code> function in Powershell and am grabbing this </p>
  
  <pre><code>$WebResponse = Invoke-WebRequest $siteExt
  $WebResponse.AllElements | ? { $_.Class -eq 'price' } | select innerText
  </code></pre>
  
  <p>When I print it out however, it give me every single element - like the .AllElements implies. However, lets say it is printing out 5 prices and I want to specifically grab, store and output one of those positions- lets say every 3rd value. Is there a way to do that?</p>
  
  <p>It prints out this currently:</p>
  
  <pre><code>innerText
  ---------
  $31.00   
  $72.00   
  $209.95
  </code></pre>
  
  <p>I just want the first value though; not all 3. I also would like to store it in a list.</p>