batch open, render a NamedSelectionSet to texture and close


I need a script that would do this on several max files:

load a scene,
select named selection set "1"
open RTT dialog box (on not if not needed)
save and open next scene file and redo the same operation.

could someone do this?
much appreciated...