Try opening the script in a text editor and searching for the line adb shell setprop. I'm sure you'll find exactly what you need.
Thanks, do you know why the WiFi page and the part where you enter the password are not recorded when recording the screen, is there an adb command to unlock it?
Unfortunately, I don't know about this.