I can create the script. We need figure it out what the first and second "x" are. Lets say if a process holds is using 30% of the CPU for 30 minutes, the script will terminate the process. Does the script also stops and then the task scheduler will launch it again or how will it work ?