To be able to send notifications to the logged in user you must add the file session-local.conf to folder /etc/dbus-1/session.d
Then you can use the command in notify-command.sh to display a message. Don't forget to match the UID with the one currently running the session.
This was tested in Fedora 31/32.