Prototyping pipeline stages in PowerShell

In PowerShell you have the option to instantiate any .Net object, and for this script I use the 

XmlDocument class for xml creation out the result file. ...