Cristiano Ronaldo scored a penalty and an overhead kick as Portugal beat Poland 5-1 to guarantee a place in the Nations League quarterfinals on Friday.