Yes I want the timer to shut down the entire layout. I don't want any power going to the ZW, only when you press the button.
Understood.
In which case try searching using phrases such as "countdown timer outlet" or "auto shutoff outlet" or "safety timer outlet" etc. For example:
Above timer plugs into wall. And by pressing a button it will apply outlet power for some fixed amount of time. Obviously the packaging is inconvenient for what you want. Presumably the ZW will be near the back of the layout near a wall outlet whereas you'd presumably want the pushbutton activation near the front of the layout, at waist-level, mounted on a panel with a large-font label saying "Push Me" or whatever, etc. So perhaps you'd have to open the outlet module and run a 2-wire extension cable to a distant pushbutton.
Yes, I can see it might be troubling to muck around inside the wall-powered module and one should logically wonder if the extension wires are carrying dangerous voltage or what have you.
So. There are wireless versions of these widgets. For example:
Here the timer selection buttons are on a handheld, battery-powered (i.e., low voltage) remote. Again I'd think you'd want to add your own external pushbutton switch corresponding to the desired timer delay for ease of use. And of course you have to make sure you have a spare battery though my experience with these gadgets is they will operate for years of "normal" use without requiring battery exchange.
And I realize that the examples shown have a minimum delay of 15 min and 30 min which are obviously longer than the 5 or 10 minutes you mentioned. There are buckets of these modules out there and perhaps you can find one that has a 5 minute or 10 minute button. I only spent a few minutes looking but here's one that has both 5 and 10 minutes:
Unfortunately while it has both 5 and 10 minute options, you access those delays by pressing the single pushbutton in some pattern which is surely not what you want. The point is at least one manufacturer saw the application for 5 and 10 minute shutoff so there's hope! By reading the descriptions of what these are used for you might be able to narrow the search to something more focused than Amazon which is all over the place. That is, shorter shutoff times might be more applicable to electrical appliances used in cooking, personal hygiene, gardening, whatever.
---
Finally, if all else fails or leads to dead-ends, you could cobble together a pushbutton activated auto-shutoff relay to supply wall-outlet voltage. You could use, for example, the elecbee timer module James suggested above. I've used that exact timer module in many applications. You can set the time delay to exactly 5 minutes, 10 minutes, or whatever. You would be messing with 120V line voltage wiring (though not while "live") so perhaps not everyone's cup-of-tea. If this is of interest I can elaborate on how I'd approach your application from a DIY perspective; that is, I'd try to do it with zero out-of-pocket but I have timer modules and a stash of electrical components. Otherwise I'd guess less than $20 out-of-pocket for a mythical "average" train guy with the usual assortment of wires, tools, etc. available.