Why does debugger stop my script after I run it?

I have a simpe script that calls an alfred workflow externally :

It works well. But for some reason, it interrupts the alfred prompt right after it is called.

The same script works perfectly well in Script Editor.

Thank you for any help.

What happens if you go to Preferences -> Execution and turn off Bring Script Debugger to foreground when scripts end?