my code:
engine.AddHostObject("$", new Action<dynamic>(o => new Window(f).AddEventHandler("Load", o)));
engine.AddHostObject("$", new Action<string, dynamic>((n, o) => new Window(f).AddEventHandler(n, o)));