Hi, all. Thanks for this thread. I incorporated the feedback here and created wifi-unredactor, a small tool that uses a minimal GUI wrapper to trigger a location services prompt and pass those permissions to a CLI program. Works on latest macOS to date (Sonoma 14.6.1).
https://github.com/noperator/wifi-unredactor
Outputs JSON like this:
$ wifi-unredactor
{
"interface" : "en0",
"ssid" : "BrightSquirrelNet72",
"bssid" : "4A:3B:1C:D2:E5:F8"
}