an inverter will not run a pc in the event of a power cut. think that what you are looking for is ups i.e.
uninterruptable power supply which is a combination of battery and inverter and depending on price will power the pc
Dell XPS 13 9370 (2018) review
Comment regarder les Oscars 2018 ?