Darrell 
2010 BMW 5 Series Sedan 535i 4dr Sedan (3.0L 6cyl Turbo 6M)
Engine Malfunction
 This is the third BMW that I have owned (335i and 2 ea 535i's) I have had the engine malfunction light come on and have lost power.  You can stop the car and then restart it and it may be ok for awhile but the same problem will return.  The dealer has been able to fix the problem quickly on both of the times that I have had the problem, it was a bad fuel pump.  lower grade gas will also cause the problem with the injectors. Other than that the cars have been great.