Since any [ScriptBlock] can become a function with the addition of a -FunctionName , New-PipeScript should accept a parameter to name the function. For future-proofing bonus points, New-PipeScript should be able to take a -FunctionType as well.
Since any [ScriptBlock] can become a function with the addition of a -FunctionName , New-PipeScript should accept a parameter to name the function.
For future-proofing bonus points, New-PipeScript should be able to take a -FunctionType as well.