Add support for stdin commands

Add an option to `run` which allows sending data to stdin.