Fix send_cmd_to_client function

Update function to send data to the individual client passed into
the function instead of to all connected clients.