If you are a traditional programmer, using bash for scripting may seem limiting sometimes ... issues are because some of the advanced functions in bash are arcane or confusing.
There are plenty of embedded scripting libraries and they provide some way for your code to access script resources and for script resources to access selected host variables and functions.