If you are running Android 14 or above then unfortunately there is no way to automate the enabling of the Wifi connection via the helper application. When attempting to toggle wifi in this way the custom Android OS will always display a prompt that must be accepted in order to proceed. There is no known way around this.