Please read Martin Bengtsson’s blog post on his Windows 10 Toast Notification
https://www.imab.dk/windows-10-toast-notification-script/
The below modifications were made to version 1.8.0 of Martin Bengtsson’s New-ToastNotification script.
- Added support for internal XML config data
- Detects if script is being run from local or network path. Network Path not supported
- Deploys required registry settings, and restarts Windows Push notification services
https://github.com/tnlowman/MartinBengtssonToastNotification/blob/master/New-ToastNotification.ps1