Is it possible to build lights via a console command or without the editor?

I am trying to make a build script and since it takes so long to open the editor I am trying to make it so via a command line i can build the lights of a specific level. Thanks in advance for anyone answering this.

Here you go: Build lighting from command line. I think this should cover it.

Thanks so much!