How exactly can you send an action to a specific window???

If I do:

alias test {
query $me
action hello
}

then the action is being send to the status window, or to the last active window and not the new query window.