Please use the script to kill a particular application that causes your Windows Computer hangs on. You should use the program name and its extension like given in the script...
Using the procedure we can stop the scheduled task from Windows Endpoint. Please run the script as System User
Category Task Scheduler