It would be tempting to call mass_update() from a script fed to wwsh. However it looks like an HTTP request from LMS to WeBWorK is first needed in order to construct a pass-back HTTP POST to LMS...
That is probably the reason mass_update() is called from ContentGenerator :)