from that error msg, it sounds like you may have accidentally created an alias named mode. try typing in mirc /alias mode

if it finds one and deletes it, then try your script again