Split out connection from sending the command
Add an interactive mode for entering commands