McGuire Mirrorglaze is what is used on aircraft plexiglass windshields and it works well.
On car headlights that yellow fine rubbing compound does a good job.
For severe marks extremely fine sandpaper (like 800 and up to 2000 grit) precedes rubbing compound for restoration and I have seen kits sold for that purpose.