PiMoRoNi don'rt seem to want to share how their power PIM shim works.
Assuming the button is read with a DC signal this should work.
simulate this circuit – Schematic created using CircuitLab
If you can spare a second pole on that switch you could try this: