presuming that all of the parameters for the opmode command have been specified correctly, I see no reason for the command to not work.
After I get my DSL back (should be within 24 hours), I'll get on the network where I have IRCop status and test the script, unless you can see that a parameter has been specified incorrectly.
I don't guarantee that the server that I'm on will have the same command, but something similar should exist.