Make Powershell one-line function work with Pipeline as well as conventional parameters I have the following PowerShell function: