The jobscheduler_event.cmd tries to send the event to the specified JobScheduler. If the connection failed to this JobScheduler then the event data are written into a csv file for later dequeueing. All environment variables with the prefix SCHEDULER_PARAM_ are added to the event data at the end of that line which is written into the csv file.
If the last SCHEDULER_PARAM_ parameter has a numeric value then this value is interpreted as a filedescriptor and the event data are written to stdout and not into the csv file
The event data are always stored into the csv file if necessary (e.g. connection failed).