fn execute_command(config: &str, cmd: &str, params: &Value) -> Result<String>
Execute a command and return updated config