Implements ProcessExtensions

Runs a process, capturing the standard output, error output and exit
code.