# Functions
CaptureStderr executes the specified function, capturing all stderr output and returning it along with any error result.
CaptureStdout executes the specified function, capturing all stdout output and returning it along with any error result.