I have a program that has some issues and has created tens of thousands of stale jobs. The powershell language for this program allows me to stop these jobs, but does not allow me to put in a range of job ID's.
For example to kill a job i can use stop-job -jobid 999 .... the -jobid does not accept wildcards or ranges.
I need to kill all the jobs in the range of 38751 to 101446 ... how can i programmatically do this? I'm guessing it would be to loop -jobid +1 ... but i'm a powershell idiot. I have no idea how to build this syntax.