Source: https://github.com/CoolerMasterTechnology/Pi-Tool/issues/7#issuecomment-834979824
FWIW, if all you want is for the shutdown button to work, this application is completely unnecessary. The button is on the standard/default shutdown pin, GPIO 3, so all you have to do is add this to your /boot/config.txt:
Enable shutdown button on GPIO 3
dtoverlay=gpio-shutdown
If you'd prefer to set the defaults explicitly: