Can I drive the UE4 editor with scripting?

You can extend the editor. This should help you: