Command line option in 3ds Max 6 and higher.
-mxs "command; command; ... "
The command line script string is executed after the max file specified on the command line (if any) is opened and the command line script file (i.e. -U MAXScript scriptfile) (if any) is executed.
No compile or runtime error messages will be displayed in the Listener, but are logged to LogSys.
The script string is executed in the global scope, the same as if the commands were typed into Listener.
Following script string execution, a scene reset is performed and MAX is shut down.
EXAMPLE COMMAND LINE:
3dsmax -mxs "b=box();render()" -u MAXScript test.ms smoketest1b.max