You would want a true sine wave type UPS.
https://blog.tripplite.com/pure-sine-wave-vs-modified-sine-wave-explained/