There's an explanation here about IMRC function and an internal schematic.
https://talkford.com/community/topic/304313-imrc/
See the second post from GearJammer, the first image is a text explanation of the function, the second image is the module's internal schematic.
Basically, at the module's 6-pin connector you supply +12V (V-ignition) to pin 2, ground to pin 3, and pin 1 to the ECU's output. Pull the ECU's output low (to ground) and the IMRC module takes care of the rest.
If you want, the 'cable switch' on Pins 5 and 6 can be used with an ECU digital input to pull it low, or high (how you wire it is your choice), to tell the ECU that the module indeed did open the butterflys when commanded. The stock engine and ECU does this verify, which is why you'll get a trouble code and MIL when the IMRC is commanded to open, but the cable switch doesn't change state verifying that the module worked properly. Trust but verify, an old Russian proverb: Доверяй, но проверяй