async fn get_cmd_stdout(resource: &CmdResource) -> Result<String>