My ThinkPad (X280) has a much simpler way of dealing with this: There's a tiny hole in the bottom, and if you stick something sharp into it and hold for a while, the embedded controller will reboot (or was it turn off?).
It basically saved me from buying a new laptop at some point, when it completely refused to charge the battery for whatever weird reason (it would charge for a second or so, and then cut off, then the charger would restart it, new cut, etc.).
As far as I know:
The tiny hole resets the Embedded-Controller (EC). I think on older ThinkPads the same is done by pressing for 10 seconds continuously the power button, while the battery is removed. Other sources say 30 seconds pressing, but for me 10 were enough.
We cannot remove the battery on newer models, therefore the tiny hole.
It's a battery disconnect. So it completely cuts off power for the embedded controller. (You hold for the caps to discharge).
Didn't help with X270. The only thing that helped was buying the original rectangular plug charger and using that instead of USB-C.
I needed this exactly once on my T480S and it was great to have it.
I think that may be solving different issue. I needed to do this for lenovo yoga after using random USB-C charger that the laptop couldn't negotiate power delivery with. The controller got confused and that pin can reset the controller. It doesn't discharge the battery.