Last time I tried to do that, it didn't work because of conflicts between my app dependencies and shadowed dependencies of the embeddable kotlin compiler. It was several versions back though, so your mileage may vary.
Basically you take either embeddable compiler and use it in your app directly or you take kotlin-script-util and use that.
kscript is mostly for command-line scripting, not for embedding.