and JXA. I have posted a macro/script which does a proof-of-concept demo of calling a KM HTML Prompt from JXA.
Demo Using KM Custom HTML Prompt with AppleScript and JXA
For more information, see the wiki Searching the Forum for Answers section.