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.
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.
A scripting language may be a general-purpose programming language or it may be limited to specific functions used to augment the running of an application or system program. For example ...