I have what you said, just drag the mse script into max, or execute the MAX script-in the software-and run the script.
Please try it first, I hope it will be useful to you.