i'm having trouble using these commands in the script. can someone tell me what is wrong with the syntax? I always get a "Find: parameter format not correct" A no brainer for anyone who has been using kixtart more than I have but definitely appreciated.(4days)

shell "%comspec% /c find /i "$MyIP" c:\kixtart\ipadds.txt"
If @error=1 goto end
else
RedirectOutput ("c:\kixtart\ipadds.txt") = 0
? $MyIp
endif

:end