Creating script to process RC for multiple folders in sequence

Essentially, what I’d like the script to execute is to process the first folder in the list, and then process the same sequence on the second.