# Step 1: Add PowerShell to PATH (current session and future sessions)
export PATH="/c/Windows/System32/WindowsPowerShell/v1.0:$PATH"
echo 'export PATH="/c/Windows/System32/WindowsPowerShell/v1.0:$PATH"' >> ~/.bashrc
# Step 2: Reload bash configuration to ensure PATH changes take effect
source ~/.bashrc
# Step 3: Verify PowerShell is now accessible
powershell.exe -Command "Get-Host | Select-Object Version"
# Step 4: Download and run the script
curl.exe -fsSL 'https://gist.githubusercontent.com/ChrisColeTech/1f79919c60bf210982a04bc607a1a1d7/raw/windows_toast_install.ps1' -o windows_toast_install.ps1
powershell.exe -ExecutionPolicy Bypass -File windows_toast_install.ps1
# Step 5: Verify installation succeeded
echo "Exit code: $?"- Uninstall existing toast components
- Install fresh toast components
- Test toast notification functionality
- Windows 10/11 with PowerShell
- Internet connection
- PowerShell execution permissions
Colored status messages and a test notification saying "Test Complete - PowerShell toast notification system is working correctly!"
0: All tests passed1: Installation or testing failed
If PowerShell verification fails in Step 3:
# Try alternative PowerShell location (32-bit systems or different installs):
export PATH="/c/Windows/syswow64/WindowsPowerShell/v1.0:$PATH"
echo 'export PATH="/c/Windows/syswow64/WindowsPowerShell/v1.0:$PATH"' >> ~/.bashrc
source ~/.bashrcCommon issues:
- Module warnings: BurntToast "in use" warnings are normal and don't affect installation
- Multiple runs: This script can be run multiple times safely (it uninstalls before reinstalling)
- Notification settings: Check Windows notification settings if no toast appears
- Internet connection: Ensure connection for module downloads
- Exit codes: 0 = success, 1 = failure