$ osascript -e 'display dialog "Hello from bash!"'
The display dialog AppleScript command is documented in the "StandardAdditions" dictionary.
You can see it when you choose Open Dictionary…
from the File Menu in Script Editor.
Then select the "Scripting Additions.osax" dictionary and choose the "User Interaction" category.
basic example:
$ osascript -e 'display dialog "Just accept it!" buttons {"Accept"} default button 1'
button returned:Accept
parsing output:
$ osascript -e 'button returned of (display dialog "Just accept it!" buttons {"Accept"} default button 1)'
Accept
$ osascript -e 'button returned of (display dialog "Are you sure!?" buttons {"No", "Yes"})'
Yes
(three is the maximum)
$ osascript -e 'button returned of (display dialog "The answer is C" buttons {"A", "B", "C"} default button 3'
C
$ osascript -e 'display dialog "Hello" with icon note'
You can also use stop or caution for different icons or add a path to an icns file:
$ osascript -e 'display dialog "Hello!" with icon POSIX file "/Applications/Notes.app/Contents/Resources/AppIcon.icns"'
$ osascript -e 'display dialog "Who are you?" default answer "nobody"'
button returned:OK, text returned:nobody
$ osascript -e 'text returned of (display dialog "Who are you?" default answer "nobody")'
nobody
$ osascript -e 'display notification "Hello, again" with title "Hello"'
[1] https://scriptingosx.com/2018/08/user-interaction-from-bash-scripts/