I understand that some time has passed. Pursuing a decision, hoping this helps someone who has landed on it.
The command prefix with void usually disables the outputs.
For example, try:
$ mongo <server>/db script.js --eval 'void (yyyymm="2011-11")'
(NOTE: parentheses are important)
source share