❔ C# Powershell, pipe one script to another?
Is it possible to run a script and pipe that result to another?
The closest I find is something like this:
6 Replies
couldn't you pipe them by executing them in cmd?
like "script1.ps1 | script2.ps1 | ..."
ah no, you are the one of the powershell scripts job manager
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.yeah, otherwise that suggestion would work, thanks though:)
is ps.AddArgument not working for you in some way?
it doesn't seem to follow the position rules that strictly,
so I don't know when i can actually trust it. It says it will use the parameter at position 0, but it seems to only care about that if it's the same type (i tested with int and string). If i know what rules it's working on then i would feel safer using it
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.