If the OP command is for op-ing yourself,
on 1:text:!opme:#:/mode # +o $nick
however this command, the user of this script must be a channel operator themselves.
If you want that to trigger only to yourself:
on 1:text:!opme:#:{ if $nick == <your nickname> { /mode # +o $nick }
If the +o command is for others, the code will be:
on 1:text:*!op*:#:/mode # +o $$2
This will all be inputed into your remote scripts