How to add new tasks containing exsisting frames to a job

Let’s say i have a job with two tasks: 1-10, 20-29. How can i add frames 25-28 as a new task to this job ? I tried AppendJobFrameRange but it doesn’t do anything for this frame range. It works fine for 35-38 though