If you want the task to close at a certain time every day, try this:

Create *2* Task Scheduler items. One that runs it, and another that runs it again about 1 minute before you want it to stop - and have it kill any previous processes (If Task is already running, kill it before starting this one). Then, have that second one end itself in 1 minute.