For glass, Carpro ceriglass is awesome. It works best with a rotary though. For normal defect removal, a light cutting foam pad will be sufficient.
On headlights, sand with 1500/2500 grit first, then wool with compound, cutting foam with compound and then a polishing pad with a finishing polish. Preferably all with rotary.