It wont be happy about it, but the circuits in a good PSU should prevent it from causing damage to the components inside the system, but it may drastically shorten the lifespan on the PSU. A square wave inverter is about as cheap of an output as you can get, at least try to find a stepped square wave inverter, thats closer to the sine wave the PSU is expecting.