After some initial puzzlement I've discovered that when you run external programs, only file stream 1 (STDOUT) is captured in the command.output method. Unfortunately, there is no error handle and redirection does not seem to work either (eg command -parm arg1 2>&1).
Do I need to write bash wrappers to redirect stderr, or is there a way to retrieve it from the result object?