Beanshell is a simple and effective way to “script” using java.
The use , at the moment, is just to “extract” status information from freerouting and to navigate a live version without using the debugger
The video shows how to access it and the basic interface.
If you want to learn something, then it is the starting point