what wrong in this script

hi all
what wrong in this script plz?

:if ([/interface wireless scan wlan2 find ssid=Adil]) do={/ip proxy access enable [/ip proxy access find comment=1]
}

/interface wireless scan wlan2 find ssid=Adil

This is not a valid command

parameters returned from wireless scan cannot be used in scripts.