Launch batch file / python script from ingame toolbar?

Hi all, I have seen some mods extending the ingame toolbar, adding a button to open a window, e.g. to show a map or a pushback assistance tool. Would it be also possible to create such a window with a button that would launch a python script that I use (either via a batch file or directly)?

As far as I can see, you can use javascript, but wondering if it would allow you to basically execute system commands (like starting files, opening an external application).

1 Like