Robert Lewandowski scored two minutes from time as Bayern Munich won the Audi Cup courtesy of a 1-0 victory over Real Madrid at the Allianz Arena on Wednesday.