create a customizable code executor with injection and script management features