Bulk Edit MIDI Sends

Due to a change I am making in my studio, I need to change the MIDI Port I am using for a MIDI Transformer. This will mean changing 400 to 500 MIDI tracks one by one in my composing template. I’m wondering if anyone knows of a way I could do this in bulk?