Schedule Broadcast message

Experts, Trying to build a schedule record which would send an auto broadcast message to all the logged in users . Below script seems to be not working at the moment, any suggestions. var processes = system.functions.processes() var retCode = new SCDatum() var argNames = new SCDatum() var argValues = new SCDatum() vars.$ss_msg = " Please save the work and log-off from the system. HP SM would be restarted as part of maintenance" argNames.push("file") argValues.push(processes) system.functions.rtecall("callrad",retCode,"system.status",argNames,argValues,false) Thx dev