Script for Enable Wireless

i want to if the interface wireless the isp kickime out it do this comand /interface wireless enable wlan1 i tried this but dont work

:local interfaz “wlan1”;
/interface wireless monitor $interfaz once do={
:if ($“status” = “searching-for-network”) do={
/interface wireless enable $interfaz
:log info message="Reconectando la Interfaz $interfaz;
}
}

Before you run your script try to type it in terminal with tab. You could miss some input keys. If you’ll try to run it in terminal, in case of mistake, in windows you’ll see: incorrect line or reply from code.