/raw stuff
treats everything as literal
//raw stuff
changes %variables and $identifiers to their values

You only need the / or // at the commandline, commands inside scripts don't need either. You may also find that you need to send to their nick not to the nic!userid@host, ie:

//raw privmsg nick : $+ $chr(1) $+ PING $calc($ctime -86400) $+ $chr(1)

If you're not already doing it, you can put an "echo -s $nick $rawmsg" inside some of the events to see the actual message formats that are used.