don’t quite understand..
your script is using AP mode, which means it is going to be an access point you connect too..
you could do Station mode and connect to you isp router and get on internet with address of 192.168.4.xxx
I’m thinking you are confused by the two modes??
~q