The automation in the screenshot would only prompt me to run the shortcut in iOS 16, but now has the option to run automatically in iOS 17.

FYI, this automation is great for my kids iPad. It seems to automatically connect when I leave the house, but then everything reconnects to WiFi when I get home. Loving it.