Due to the serious nature of the report, police, including specialist firearms officers and the police helicopter, were deployed immediately.
After reviewing dashcam footage, it is a believed that a slingshot or catapult-type weapon was used to damage the car window.
No one was injured and enquiries are ongoing to identify any suspects who were involved.
Anyone who witnessed the incident is asked to contact North Yorkshire Police on 101, quoting reference 12220098605.