At first you should use a = sign in a var statement, like this:
var %question = $?!="Shall I continue?"
But if that doesn't work you could try
var %question = $input(etcetera)
See help $input for the right format.
According to the helpfile both $? and $input cannot be used in script events. One way around this is to use a /timer to initiate an input request after the script ends, but that doesn't halt your script.
However, I do use $input in an on connect event and that does work, it halts the script until I've entered something. Just try it.....