Sorry, I clicked "Recommend" a bit too soon...I tried running this just now and got the following error:
The domain/default pair of (/Library/Preferences/SystemConfiguration/com.apple.airport.preferences, RememberedNetworks) does not exist
Using Big Sur 11.1.
Just a note, I am not a coder in any way so probably might need a Kindergarten response. I just happen to enjoy digging the brains of coders for solutions to some Mac grievances from time-to-time.