NJBrad,
It's not too late :-)
*) I think that two commands you provided are not the same at all (the
second is correct, indeed).
*) I am not sure what you are going to do with the first command (still not
enough the code). Thinking in pure PowerShell it looks rather like the code:
Param([String] $VarA); echo $VarA | ...
or
.... | Param([String] $VarA); echo $VarA
or
.... | Param([String] $VarA); echo $VarA | ...
or
???
In any case syntax is odd and apparently not correct.
I cannot play with it just now, so that I would recommend you to try to use
a script block, i.e.
pipeline.Commands.AddScript("{ Param ... }")
(or perhaps this: pipeline.Commands.AddScript("&{ Param ... }")
which corresponds to at least valid and working (at least in V2) syntax:
0> & {param($vara); echo $vara } 'foo'
foo
--
Thanks,
Roman Kuzmin
http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager