Pipe Terminal Output To Notification, If Output Contains Specific Phrase?
If I understand you correctly, you can access the output of your scripts. Then you can do something like this:

#!/bin/bash

# Replace the echo with your script
echo "space cats" | grep "space cats"

if [[ "$?" -eq "0" ]]; then
    osascript -e 'display notification "Attention!" with title "Notification" subtitle "I found space cats" sound name "Submarine"'
fi