Using Rand's alias:
alias passdatato5 {
scid <id>
raw privmsg #torn :hi
scid -r
}
Should work. Do you mean send a message to the channel whilst not currently on it? If you do you need to unset the channel mode +n which will then allow messages from outside the room.