Yes there is an easy way. Just go into bios, your computer probably has the option about what to do following ac power loss. Mine does, I have mine set to stay off. I agree with
theuedimaster though, a ups is a nice thing to have.
But it will not do crap durring a hurricane ... that is why you need a gas generator too. I hooked my computer up briefly to a generator durring the hurricane (my power was out for 5 days during / after hurricane francis last summer) so I could get some work done.