fyi, Don't know if you've seen this.

indilib.org/develop/developer-manual/104-scripting.html

This is indi properties vs EKOS but you may be able to get what you want. Your idea of "variables" like $filter, etc is a great idea.

Read More...