After a disappointing summer, Germany were eager to restore the nation’s confidence following their goalless draw with World champions France in midweek.
Although it was Peru making the first foray, as Raul Ruidiaz took a long shot from afar but Marc Andre Stegen saved easily in the opening minute.
Towards the midway point, the home side battled to find any meaningful openings with most of their half-chances involving Marco Reus and Timo Werner failing to bear fruit.
That resulted in Peru taking the lead against the run of play with Luis Advincula beating Ter Stegen at the near post on 22 minutes.
The lead lasted only a few minutes as Peru conceded possession for Brandt to lob in the leveller despite the best efforts of a goal-line clearance.
Werner flashed a shot from inside the box later on, but quick reflexes from Pedro Gallese pulled the effort clear.
Just before the break, good combination play between Brandt and Ikay Gundogan played the latter in on goal but Gallese stood firm once more to push the attempt for a corner.
In the second half, Peru went within a whisker from reclaiming the lead when Jefferson Farfan forced Ter Stegen to a save from close range.
After nearly conceding, Germany almost scored at the other end when Werner got on the end of a quick counter only to shoot over the top.
It was the turn of the Peruvians to threaten the goal, and Farfan nearly made them pay for poor defending but shot over the crossbar from close range on 58 minutes.
It was beginning to open up on both sides, with the South Americans showing their adversity to take the game to the recently dethroned World kings.
After making a few alterations, Die Mannschaft's best chance at the midway stage found Nils Petersen, who went close with a half-volley on the turn at the far post on 74 minutes.
An error from Gillese gifted Schulz his first international goal to give the Germans the lead for the first time on 85 minutes.
Werner edged close to handing the hosts another goal after going down the byline, but he only found the side-netting as Germany ran out victors to end of their international adventure.