BMW Questions? Ask a BMW Repair Expert for Answers.
It goes to the actuator for the valve on the exhaust muffler. Most people block it off to keep the valve always open so you can you block it off under the intake.
Here is a diagram of it