This is an enhanced version of a script from Lee Holmes' book Windows PowerShell Cookbook (O'Reilly). The original script takes a pipeline & presents a GUI that lets you select which elements to pass on to the next step in the pipeline. That's unchanged, but my enhanced script does a little more:
EDIT: Fix the attachment.