Guard Cade Cunningham had 29 points, 15 assists and 10 rebounds for the Detroit Pistons' first triple-double at Madison Square Garden in a 120-111 win.