Add Timeout and Redirect stdout for command execution