/!unload -nrs "C:\path\to\script"

That will definitely work, providing the path you specify is to a file that has been loaded into remotes. Make sure you are specifying the right path, if it has spaces then enclose it in quotes. Type:

//var %i 1 | while $script(%i) { echo -a %i - $ifmatch | dec %i }

To see the full filenames of your loaded scripts

Also: for the unknown operator error use if $read(...) != $null {