I regularly connect to an ap that does not broadcast the ssid.
The main issue is probably that wifi.sh will not connect (in my case at least) - even if I save the correct details in wifi.db. Connecting from a saved wpa_supplicant configuration like that above works fine.
Various iphones, ipads, etc, all remember the details after the initial entry and connect automatically thereafter.