title: Get minimum value in an array and then get index
body: <p>I want to get the minimum value in an array and then get the index of that item, in one step without writing my own loop (if I have to please let me know).  </p>
  
  <p>I know I can just do the<br>
  <code>$b = ($a | Measure -Minimum).Minimum</code><br>
  But then I have to do<br>
  <code>[array]::IndexOf($a, $b)</code><br>
  And while that is normally okay, I'm looking for a way to do it once because I'm running this MANY MANY times in a loop.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: One step meaning without looping through the array twice</p>