Something I am sure you know . . .
Those scripts are not on the consumer version firmware so you will have to re-invent them for your extension so as not to re-distribute Amazon code.
But they will contain the system indexer control commands.
Note:
Lua is pre-installed on all 5.x firmwares and you can 'exec' a Lua script from the KUAL control files rather than call a shell script.
Ah...
That isn't specific to Lua, KUAL control files can either call or exec any executable code, the calling an external shell script is only tradition here.
Translation:
If the control script is just a simple system control command - stick the system control command directly in the menu.json command line of KUAL.
If the command requires arguments, use the 'params' field of menu.json command line.
- - - -
I.E: There is a lot of flexibility in how you chose to 'not duplicate Amazon code'.
PS: Sorry for stealing the ;log searchbar command - but we put a 'dispatcher' script on it, so you can put your 'hide books' calls into the 'dispatcher' script.
I don't recall if anyone PM'd you about doing that last month, it was a hectic few days.