To power up, all that’s required is to connect physical pin 5 (BCM 3) to the ground next to it. This functionality is enabled by default.
To shut down with the same button, just add the line
dtoverlay=gpio-shutdown
to /flash/config.txt
config.txt
is read onlyto edit ssh
then to make it read only again
Millions of Thanks!!!