Basically you just run a script as normal... but this script you run should actually just be something that loads in an external jar and executes it. Reloading the jar in whenever it changes (so you'd watch for file changes)
https://gist.github.com/anonymous/50ad5efb7e7cf3a3da8a097eadbd276d This is one i wrote for a different client (i apologize if this is not allowed),
but its the same basic idea, you can use that and just change it to make it work with osbot.
As far as I know, when you instantiate the class from the jar file, you can just pass the Script instance to the new class through the constructor.