Paul Pogba made his first appearance of the season as Juventus twice came from behind to win the Turin derby 4-2 on Tuesday.