...
Save your project before Solve or Update.
Run the command as follows:
Code Block language bash runwb2 -B -F WorkbenchProjectFile -R WorkbenchScriptFile &
It will execute the specified script, and shut down at the completion of script execution. Here is a sample script named as test.wbjn (note: can be generated by record journal in workbench):
...
SetScriptVersion(Version="20.2.221")
Save(Overwrite=True)
exit
Note: With Force=True, the simulation continues from previous simulation. For a design point project, replace Update() lines 4-6 by UpdateAllDesignPoints()
...