BUG 15153 Call to undefined function SOLVED

- The pmFunctions from the plugins not loaded before include pmScript class
- Change the includes order of the related classes