Sending hatches inside all blocks to the back (draw order)

I’m looking for a little script that can send all hatches within all blocks to the back (changing every hatch’s draworder value). Can anyone give me any pointers?

Thanks