Add script output to S(Q, w)

Refs #10492