1st you have the wrong command to open a window
That window is already opened
2nd you have not set the command line to add a msg
to the custom window
$chan refers to the window this notice was caught. It will be replaced with the channel name.
Executing the command /splay -cq Sounds\ChatAction.wav akes the sound, but in this on NOTICE it doesn't.
The whole script isn't executed