In general its a mistake. Is it hard to rewrite this function to lua?
You can use blocks of each syntax:
Код
log start
--lua
log ("lua")
--endlua
log finish
end_script
or put normal script to dedicated tab and use start_script() for call it. You can check execution status by scrpits() (its return status of loaded scripts).