Switching 'Render Selected (Pixel Mask)' with MaxScript

This may not be possible, but can this mode be switched with script?

I’d like to switch between Disabled and Viewport selection with script to use in Scene Manager setups in Pulze.
Thanks in advance.

See
https://forum.corona-renderer.com/ Maxscript call for Corona Render Selected #msg209990

Good Luck