dtoverlay=gpio-shutdown,gpio_pin=3,active_low=1,gpio_pull=up

Bingo

It shuts down and a second click of the button it restarts. Tried it a few times and works ok. I will try adding the super capacitor UPS on pin 18 next.

Thanks very much.