I want to invoke an external command from Kotlin code. In C/Perl, I would use system() function. In Python, I would use the subprocess module. In Go, I would us
system()
If you're running on the JVM you can just use Java Runtime exec method. e.g.
Runtime.getRuntime().exec("mycommand.sh")
You will need to have security permission to execute commands.