title: Getting original object after piping via Out-GridView
body: <p>I need to show a list of file names <strong>without paths</strong> and open the selected file.</p>
  
  <p>I can get it to work with full paths:</p>
  
  <p><code>Get-ChildItem *.txt -Recurse | Sort-Object Name| Out-GridView -PassThru | Invoke-Item</code></p>
  
  <p>But when I try to show only the file names it fails:</p>
  
  <p><code>Get-ChildItem *.txt -Recurse | Sort-Object Name| Select-Object Name | Out-GridView -PassThru | Invoke-Item</code></p>
  
  <p>By piping it through Get-Member I understand that <code>Select-Object Name</code> striped all non-Name properties. So how can I trace the original file object from what I got from GridView?</p>