when engine warms up the rpms run high and low also during this time when I turn on my headlights the engine will shut off
What engine do you have? 3.1 or 3.4? If its a 3.4 car, they like to eat alternators, which sounds like what you need.
Search Pontiac Grand Prix Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Pontiac Grand Prix Experts