Blueprint script that runs in the editor?

You should see this https://forums.unrealengine.com/showthread.php?1954-TUTORIAL-Blutility-Running-Blueprint-functions-inside-Editor