You can take a look at kscript project as an examp...
# random
e
You can take a look at kscript project as an example of what can be done with Kotlin Script https://github.com/holgerbrandl/kscript