Please encapsulate code, snippets, logs, config within three backticks for better readability. I’ve edited your post once to make it a bit more readable - please edit it again.
More tips here: Create topics and master Markdown formatting
What exactly did you modify in that script? Also, did you modify the NotificationCommand object too?
Cheers,
Michael