Hello!
I've reviewed your script, and although I don't have much experience with Outlook specifically, I've noticed a glaring issue. Once fixing that issue, your problem should be resolved.
If fixing that issue doesn't fully resolve your problem, then I'll need to further investigate, which will require installing Outlook and then running tests with the script, which I can't provide an exact time estimate on.
Let's discuss further. Thank you for your time!