How to create StaticMesh with console application?


I am trying to develop a console application which generates few meshes and saves them as .uasset files and pack them as .Pak files.

I am trying to modify the BlankApplication (which comes as part of UE4 guthub source) to achieve the functionality. I could not understand what modules to include (the build targets stuff etc.)

Can you please give some clues?

Thanks in advance.