I'd inline the `runCommand` function here.