How to use the application plugin with multiple start scripts in a Kotlin build file?

Using the application plugin in a Kotlin build file works without any problem. But I could not find any example in Kotlin that shows how one can create multiple start scripts, like for example in https://mkyong.com/gradle/gradle-multiple-start-script-examples/. The application plugin documentation (https://docs.gradle.org/current/userguide/application_plugin.html) unfortunately doesn’t cover that and the CreateStartScripts documentation (https://docs.gradle.org/current/dsl/org.gradle.jvm.application.tasks.CreateStartScripts.html) does not container a Kotlin example.