I think the question is linked to this one: Standalone Kotlin REPL?.
We need a way to call for kotlin compiler from the code as it is done in GroovyShell and now JShell. I am also using beaker (with groovy for now), but I also have embedded shell in my code (groovy for now) and would like to use kotlin for that.