This process works for all devices
Login to your Raspberry Pi via Putty
Edit the config.txt file
sudo nano /boot/config.txt
Add the following lines to the end of your config.txt file:
#Shutdown Button
dtoverlay=gpio-shutdown,gpiopin=3
#Poweroff Trigger
dtoverlay=gpio-poweroff,gpiopin=4
Save your changes and Reboot
sudo reboot