Command line option in 3dsmax 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 Listener. 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