in reply to capture STDOUT when some jerk opened STDOUT to /dev/tty
I'm not allowed to touch the script. That's completely forbidden.
Fork the code of the script. That's the best I can recommend.