I am using command line to import two created xml files into the task scheduler whose purpose is to run never-ending batch files (keep running until terminated). Because they are never-ending I could not put multiple multiple commands into one task as they are run sequentially and I want them running simultaneously. Moreover, their goal is to start up one minute after the idle trigger has went off. Then, upon idle mode ending the tasks are supposed to end as well as the two batch files as I have both hard terminate and end on idle parameters set to true. However, only one of the batch files is closing leaving the other one still running.
My question is how can I solve the problem of only the one task from ending and not both of them or if it is closing but leaving the program open and making sure it closes it with the task.