Connects to server and sends a command