Activate/desactivate I/o tool 24VDC

Thank you very much.

How can you pass from polyscope to sript command?