The software you can use for example is Imaging Edge
For your camera it support tethering. Here is example how to connect your camera.
And here how to set shooting on interval.
Also few points for consideration:
Are you sure you will have power all the time? Or power interruption
will be for less time laptop battery can handle?
Do you have enough disk ...
Search eBay/Amazon etc for "Intervalometer" - prices around $£€ 10 - cheap as chips.
They come with adaptors to fit just about any camera that can use one. Usually claim time-lapse intervals programmable up to 99 hours. They're all pretty generic Chinese devices, unbranded or branded with any number of different names.
Bonus: even without batteries they ...