A function like execute() can not be implemented because the compiler does not support that.

But you can call script functions through engine_getscript().