title: Current dir in Get-Location -Stack
body: <p>Trying to determine if the <code>$pwd</code> is in Powershell's directory stack. </p>
  
  <p>I"m getting the stack like this:   </p>
  
  <pre><code>$stack = Get-Location -Stack
  </code></pre>
  
  <p>and trying to search like this:<br>
      $found = $stack | Select-String "$pwd"</p>
  
  <p>I have tried single quote, double quote, tried <code>'$pwd.ProviderPath'</code>.</p>
  
  <p>Is there a better filter than <code>Select-String</code> for this?  Am I using <code>Select-String</code> incorrectly?  Thanks for any insights...</p>