Ok I have amended it to the below. But unfortunately there is still no display message but the sierra.app did delete upon download. Again I would add if I make a test directory /Applications/Install\ macOS\ Sierra.app it deletes and you get the display message.
#!/bin/bash
Version=$(sw_vers | grep ProductVersion | tail -c 8 | cut -d . -f 2)
if [ $Version -ge 12 ]
then
launchctl unload /Library/LaunchDaemons/net.sierra.plist
rm -f /Library/LaunchDaemons/net.sierra.plist
rm -f /usr/local/bin/sierra.sh
exit 0
elif
[ -d /Applications/Install\ macOS\ Sierra.app ]
then
rm -rf /Applications/Install\ macOS\ Sierra.app
osascript <<'EOF'
tell application "System Events"
activate
display dialog "macOS Sierra is not allowed on computers at this time." ¬
with title "Technology Notice" buttons {"OK"} default button 1 giving up after 30
end tell
EOF
fi
exit 0