Executes Javascript on the window, restricted to windows you own or windows owned by applications you have created.
Example
var finWindow = fin.desktop.Window.getCurrent();
finWindow.executeJavaScript("console.log('Hello world');", () => {
console.log('success');
}, (r, e) => {
console.log(e);
});