two thoughts:
or
https://www.capesoft.com/accessories/OddJobsp.htm
“Provides the ability to write data to a process’ StdIn, and read from the StdOut - allowing communication with command line processes such as servers, compilers, script interpreters (such as PHP, Python and so on), etc.”