title: Select-String -Pattern Output when piping into
body: <p>I try to get PowerShell to spit out a Semantic Versioning Variable but get stuck in it displaying just the command I entered (doing that in the ISE) or either of 2 errors ('missing argument' or 'doesn't accept piped input'), which, if I try to resolve them, end in the command simply being displayed again.</p>
  
  <p>How do I get this:</p>
  
  <pre><code>(Invoke-WebRequest -Uri http://someplace).Links.href | Out-String -Stream |
      Select-String -Pattern [regex]$someGoodRegex -OutVariable $NodeVersion_target
  </code></pre>
  
  <p>assuming the regex and web request point to solid things to simply stick the searched term in the <code>-OutVariable</code> defined?</p>
  
  <hr>
  
  <p>On a more general note, is there a good way to display the properties of the objects in the pipe? After a great deal of digging, I stumbled upon <code>{$_}</code> but can't get it to display anything but the command again if the command gets a little more complex that just a simple cmdlet.</p>