To me it looks like that would require multiple modifications of the Modular Train mod. Unfortunately, any modifications that this mod would force onto Modular Train might make it incompatible with any future updates of Modular Train.
Modular Train also solves electric energy transfers with runtime scripting. Being lightweight and therefore avoiding runtime scripting as much as possible is a design goal of the Battery-Electric Train mod. I’m not too keen on adding scripting to support another mod.
Modular Train already has electric engines. Why don’t you use those?