fn capture(command: Command, origin: &str) -> Result<String, Error>
Runs a command, requiring exit 0 and returning its stdout.