Car shuts off while driving

+1 to Ed’s post.

Be sure they check the battery connections for corrosion buildup as well. It might be a good idea to have them cleaned and reattached as well. The guy who did the recent battery change may not have cleaned the connections well or coated them with anticorrosive grease. A poor connection causes corrosion buildup (a white crusty stuff) and that acts as a resister, often as an intermittant connection.