Pass jvm-target option to Kotlin JSR223 Script Engine

Hi. Could anyone please suggest a way to specify compiler option while calling script evaluation via JSR223?

val engine = ScriptEngineManager().getEngineByExtension("kts")!!
result = engine.eval(source) as Result

The reason behind my question: in a project I use Java 11 ubiquitously, so this code gives me following ScriptException currently: “Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper ‘-jvm-target’ option”.

Dependency used: kotlin-scripting-jsr223, version 1.4.32