Probably could try rubbing compound on a rag and then a buffer pad. Auto supply stores (like NAPA) could give directions and supplies. They may have suggestions after seeing the scratch.
Clay bar kit might do the trick.
Clay bars are a resin mixture designed to remove containments from surfaces. When you glide the clay bar along the surface of your car, it picks up anything extending from the surface. The dust and dirt get stuck to the clay, and so you’ve successfully removed the containment. It will not remove a large scratch.5 Hacks to Rid Your Car of Deep Scratches - Carbibles
May 2, 2019 - Its scratch-removing abilities are closely tied to its abrasive properties. ... about an unusually large area to 'cover' such as multiple scratches.
I would try Ken's suggestion. The buffing compound will help to fill in the scratch and the drill powered buffer pads can help improve the shine again.