State Sets Compositor

Hello!
I record a lot of scene states for layered rendering.
How to open the compositor window through a max script and specify the path of the PSD and run the render in the PSD?

AttachmentSize
3.jpg351.01 KB