scid <cid#> echo -s hi
Keep in mind, this is not safe to do.
If you are using this in a remote script, it will double evaluate. For instance, if you have a variable called $no and it returns $me, if you pass it to the //scid, then it'll show your actual nick. So be careful of the data you pass.
A safer way to do this, is to do something like:
alias passdatato5 {
; Changes your command-connection to the $cid "5"
scid 5
; The following commands are sent to the status window of $cid 5. :p
echo -s teehee
echo -s ^^
; Resets the command back to your normal server.
scid -r
}