Misc command-line management scripts for Moodle