Try this
Allow the running of the command as another user, in a custom directory and capture stdout/stderr