You may have noticed that after terminating a scheduled task the triggered script will continue to run until completion.
This is a product defect (VSTS115880).
Restart the AR service hosting the terminated scheduled task to stop the triggered script.
This will be fixed on a future release of the product. Please refer to this article for updates or contact support referencing the defect ID VSTS115880.