First, use the following function with -Message to generate a toast notification for PowerShell.
function New-ToastMessage { <
After that, you can see PowerShell in the settings of Windows 10> System> Notifications and Actions> Receive notifications from these senders.
Click "PowerShell" and turn on "Show alerts in the Action Center", for example:

Finally, you can call the above function using the -ActionCentre switch to send it there.
Robin
source share