I use the following in my script. I use looping logic to check for active jobs on both of our nodes, and if any are found, then I execute the task kill.
taskkill /F /IM AlteryxEngineCmd.exe
Proceed with caution, as this will truncate a job mid-run, which may affect your customers. My users know to avoid the maintenance window, so the only jobs typically getting killed are high-frequency runs that see no real negative impact from being canceled.