How to run a sketch for a fixed amount of time from power-on

Loop runs all the time , setup only once .

If you want the sketch to only run once , you can put it all in setup()