I found the solution...
Need to include the question/engine lib.php file and it includes everything.
require_once($CFG->wwwroot . '/question/engine/lib.php');
I found the solution...
Need to include the question/engine lib.php file and it includes everything.
require_once($CFG->wwwroot . '/question/engine/lib.php');