The following is the complete code for the wrapper example, and I did put it on PoSHcode.org , the PowerShell code repository, : As you can see below you can also use the Code in the Repository on your blog by using the provided link ( Update try to fix