How to perform an optimization without the Graphical User Interface is shown on the example of the Bookshelf. For the setup of this model have a look at the tutorial Generative Design - Bookshelf.
...
After opening the powershell the GD Eninge.bat-file has to be executed. Therefore, the right path to this file has to be chosen.
& 'C:\Program Files\MSC.Software\MSC Apex Generative Design\2020-737572\runGD_Engine.bat'
With Enter the start of the optimization is initialized.
...