2008 Chevrolet HHR - Wipers Quit/Restart

My windshield wipers quit after a minute or two and will not work for a few minutes. Then they will work again for a few minutes and quit. I’m thinking that it might be a wiper motor issue but wanted to get a different opinion.