Hi there,
In your case, you need setup two scheduled tasks, each with the same executable, but different parameters depending on what you want that instance to do.
You can try out these commands to see if it is helpful
https://learn.microsoft.com/en-us/powershell/module/scheduledtasks/stop-scheduledtask?view=windowsserver2019-ps
Hope this Answers all your queries , if not please do repost back .
If an Answer is helpful, please click "Accept Answer" and upvote it : )