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):
system1 = GetSystem(Name="FFF")
solutionComponent1 = system1.GetComponent(Name="Solution")
Note: With Force=True, the simulation continues from previous simulation. For a design point project, replace Update() lines 4-6 by UpdateAllDesignPoints()