I'm pretty sure it's impossible to send a message in a group chat to only one person. Just open a new chat window with them
Besides which, there are a few syntax errors here, I've fixed some stuff up for you. Not that it's going to be particularly useful if it is impossible.
jscript code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
var exp=/\/Test\s(.*)/i //Regular expression of /Test email@domain.com
if(exp.exec(Message!==null){ //If regexp matched message being sent
var email=RegExp.$1 //Store the email for future use
switch(email){ //Find out what the email is
case 'email@hotmail.com': //If it's this one
//Do stuff here
return 'Testing'; //Send message
break; //Stop the script here
case 'jsmith@tardis.com': //Otherwise if it's this one
//Do more stuff here
return 'Testing2'; //Send a different message
break; //Stop here
}
}
}