MCE STB control: Must be possible

I have an MCE 2005 remote + blaster, and STB that MCE wont work with, and a USBUIRT which does control my STB with MediaPortal.
I can't help but think that there MUST be a way to control my STB from MCE with USBUIRT! And maybe girder.
What about this idea:
1. MCE lets you choose your STB from a list of over 700. So I choose one that it knows. Lets call it FooSTB.
2. I set up my USBUIRT to receive signals from a FooSTB remote control.
(I do this by running putting the MCE emitter in front of USBUIRT, running MCE, changing channels 0-9, and learning the codes.)
3. I then set up Girder to receive the FooSTB commands and emit the corresponding commands for my STB for which I have trained it.
4. Now I put the MCE emitter in front of the USBUIRT receiver and the USBUIRT emitter in front of my STB.
Should work no?
I can't help but think that there MUST be a way to control my STB from MCE with USBUIRT! And maybe girder.
What about this idea:
1. MCE lets you choose your STB from a list of over 700. So I choose one that it knows. Lets call it FooSTB.
2. I set up my USBUIRT to receive signals from a FooSTB remote control.
(I do this by running putting the MCE emitter in front of USBUIRT, running MCE, changing channels 0-9, and learning the codes.)
3. I then set up Girder to receive the FooSTB commands and emit the corresponding commands for my STB for which I have trained it.
4. Now I put the MCE emitter in front of the USBUIRT receiver and the USBUIRT emitter in front of my STB.
Should work no?