You can try and ask in the Reaper forum someone might have another script to do the same thing.
See how you go if not I can look at making one that will select so many folders to do at once so you can do in sections.
You can try and move a group of folders to RealTracks2 and Drum2 and just do them then them move back to RealTracks & Drums when done.