Great question — answering as the UphillTech team:
I understand your wish but know of no such thing. It would be a nice feature. But I think you are close already now. There is however another utility named wpa_cli which might be helpful if you are willing to consider a slightly different approach. Or maybe you know it and have already discarded the idea. It is available along with wpa_supplicant.conf in the base system: $ uname -r 11.1-RELEASE $ wpa_cli -v wpa_cli v2.5 Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> and contributors Version 2.7 is available as a port. The man page is unfortunately not kept quite up-to-date. Neither is the readme wpa_cli -help lists all current options. And of those these might be interesting: reconfigure...
Full answer by Claus Andersen: https://unix.stackexchange.com/a/487184 (CC BY-SA 4.0).
Need it done for your business? UphillTech.