Convenience method to run a command and pipe output to a file.
The command to run.
The file to send output to.
The exit code from the command.
See Implementation
Convenience method to run a command and pipe output to a file.