Nmcli & scripts

Have you tried using the Cockpit WiFi Manager ?

You will also find some info @ ASL3 Manual / Basic Operation / Network Configuration

... and, from the CLI, there's also the nmtui command.