Here are the steps:
1. To allow foreground execution on remote computer you need to install VisualCron there too first. In this case, if there is only one computer, then I would create the Jobs on this server too.
2. create a Job 1
3. add a trigger that checks for process app1.exe on server (termination)
4. create an Execute Task and set the "Execution context" on main settings to Foreground
5. repeat 2-4 for second process
Alternatively you can install VisualCron both on the "main" server and "remote computer". Perform step 2-5 but on step 3. you check remote server processes and step 4. you set a remote VisualCron server in "Execution context"