How to create a KODI entry to run a script?

You would need to wrap it in a python script