Implement handle_command_do function for the Server