Then the popup appears, if memory serves.
There is probably no point in attaching it to a toolbox, unless you want to make the parameters for the tool defined/exposed.
You can set defaults for the parameters to at least give users a view of what the parameters are before they run it.
If this is for a scheduled task, then the script doesn't need to be attached at all