exports a function that spawns a process and returns a single duplex stream joining together the stdin and stdout of the spawned process.