Adding script for check course on Moodle