You might be right that there is more to it.
wireless.sh start MySSID wpa MyPassPhrase
Does start my wireless connection but not reliably it seems.
However, I found another set of scripts that suit my needs:
https://www.mobileread.com/forums/showthread.php?t=14718
Those scripts do not automatically connect to any available wireless network, but I'm fine with that (for now

).