I've created a script to restart the network manager using
#!/bin/bash sudo service network-manager restart
I've named the file network-restart.sh and ran
chmod +x network-manager.sh
to set the file to executable
I've also created a desktop file name Network-Manager.desktop and saved in it ~/.local/share/applications
[Desktop Entry] Type=Application Encoding=UTF-8 Name=Network Restart Comment=Network Restart Exec=/home/elementary/Documents/Scripts/network-restart.sh Icon=/usr/share/icons/elementaryPlus/emblems/16/emblem-insync- syncing.svg Categories=Utility Terminal=false
The icon shows up in the Slingshot menu but does not appear to be executing the network manager restart command.