AppleScript apparently can be run in KM without additional restrictions. That can be more friendly for people with no or little prior scripting experience.
It is also stated in the KM documentation that user interaction is disabled when running AS inside KM. Therefore it’s not possible to use a dropdown list. My version of the script, which generates a text document without requiring user interaction, might be more suitable in this case.