Re-Implemented ScriptVm<VM>::executeFunction().