pmset must be run as root in order to modify any settings.
See man pmset for a description of power management with more examples.

The macOS Energy Saver preference file is stored at:/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
If energy saving preferences are not 'sticking', then trashing this preference file and rebooting will usually fix things.