Running a script while in editor

Id like to be able to run a js Iv written while in editor, its a script designed to voxilize cubes but it takes significant time to run so is there any way for me to run it in editor so I can use the product as a model?

Yeah, just put the script in the Editor folder, and add a line of code like thise:

@MenuItem ("GameObject/Voxelize");

or something like that should work.