Support reading commands from stdin