Not without a good bit of logic I had to change, as the way the coding was by default it did not lend itself to a straight forward on/off control.
Stock operation has a default position (table: Static Exhaust Flap Position) under a certain MPH (table: Maximum Speed for Static Exhaust Flap). Then above that speed, it is open/closed based on driver torque request (table Z data, axis are gear and rpm). There you'll see the 4 possible tables. Only things that matter are trans (AT/MT) and convertible top (open/closed). Sport mode does not seem to matter on N54.
I think we discussed the can bus messages in M3DCT swap thread at some point but the specific messages didn't get a mention. Theres a remote control circuit that you can build with bits from eBay that would do much of what you want except integrate with the CAN BUS although it wouldn't be hard to take it that step further to control it from a can shield