In my Observatorium I use a RCW box for remote control fo power switches. https://www.teracomsystems.com/ether...le-tcw181b-cm/
For switching ON or Off a relais in a *.vbs script, I use following code:
---------------------
Dim TCW
Set TCW = CreateObject ("WScript.Shell")
TCW.Run "c:\usr\bin\snmpset.exe -v 1 -c private 192.168.1.221 1.3.6.1.4.1.38783.3.2.0 integer 1" 'R1 ON
set TCW = nothing
---------------------
What would be the equivalent code for eg the SampleShutdownObs.js script?