TERMOUT is the answer.

From the doc:
SET TERM[OUT] {ON|OFF}
Controls the display of output generated by commands executed from a script. OFF suppresses the display so that you can spool output from a script without seeing the output on the screen. ON displays the output. TERMOUT OFF does not affect output from commands you enter interactively.