Take a look at this post to see how to launch an .exe on windows. I use this method to launch XBMC.
I know you can change which keys perform which functions in XBMC so you could set up the flirc for mediaportal and change the key layout in XBMC to match the same keys.