I tested it by doing:
call SetRectTerrainType(gg_rct_test1, 'Lgrs', -1)
call SetRectTerrainType(gg_rct_test2, 'Lgrs', -1)
call SetRectTerrainType(gg_rct_test3, 'Lgrs', -1)
call SetRectTerrainType(gg_rct_test4, 'Lgrs', -1)
call SetRectTerrainType(gg_rct_test5, 'Lgrs', -1)
and it all worked until I put
call TriggerSleepAction(0.5) after every call, then it just worked in the first rect, but didn't do anything to the others...