https://www.makeuseof.com/tag/3-tools-to-create-your-own-tex...
Writing your own is, of course, an option, but don't underestimate the task. A "simple" POC is usually very easy (my son and I did one in an afternoon). But building an engine with block-able exists, recursive containment, item interaction (eg. "turn bolt with wrench" and the custom functions they need), can be a much larger effort.