For Ubuntu it's easy to create a desktop notification: https://askubuntu.com/questions/187022/how-can-i-send-a-custom-desktop-notification
it looks like:
$ notify-send "Hello world!"
on MacOS, I am looking for a simple command that I can use to create a system notification. Is there some apple script that I can launch to accomplish that?