Allow commands to be passed into a pty session.