Windows 11 24H2's sudo now provides the closest implementation of this. Unfortunately, unlike pkexec, it doesn't appear to regress to a CLI when a GUI is unavailable, but that is a generic failure of the UAC GUI.
sudo
pkexec