Here is a little hacky (not reliable) solution. Starti 3ds Max with a MAXScript script on the command line. for instance
c:\3dsmax\3dsmax -U MAXScript myscript.ms
Parceval, script MAXScript:
createFile c:\tmp\myfile.txt
Python ( ). :
while not os.path.exists(c:\tmp\myfile.txt):
time.sleep(1)