That 'fancy, properly designed inverter' is going to be set up for that. There are now many brands and options of inverters, that will do exactly what you suggest.