Hello so I have been making a small cross platform script I can curl and pipe into bash and Powershell. The basic idea is the server sends a command to the interpreter and then it gives a command to redirect all output after to stdout. An example in bash is
#some commands
aplay rick.wav
cat -
random text
that will be redirected to stdout by cat...
bash will never see this
I would then pipe this to stdin of bash
But for Powershell I can do cat test.ps1 | iex
or cat test.ps1 | powershell -
But can't redirect stdin to stdout continuously in one command like cat -
because cat doesn't look from stdin.
Also some side notes after trying a lot of random things it seems like there are many stdin types for Windows, one being keyboard and another being pipes