Similarly to Send commands to background process I am trying out a command that expects key strokes as command inputs, this seems not to be possible right now.
GitHub - leadedge/SpoutRecorder: A Windows console application to encode Spout input with FFmpeg.