keyboard shortcut for changing Power Mode and enabling Pro Motion

First setting I found unsupported!

With my M3 max I find myself switching between low power mode and automatic power mode, and it is a bit cumbersome to do this in the default settings. I'd love to set up keyboard shortcuts to toggle these features!

I think you can use this apple script to enable low power mode:

do shell script "pmset -a lowpowermode 1" with administrator privileges

However it will always ask for your password when enabling low power mode.

Not mandatory, but not nice:

do shell script "pmset -a lowpowermode 1" password "******" with administrator privileges