Hello,
Thank you for posting in Microsoft Q&A.
Based on the description, I understand your question is related to Batch script.
Go to Settings > System > Notifications & actions.
Make sure notifications are enabled for PowerShell. Scroll down to find Windows PowerShell and ensure that Show notification banners and Show notifications in action center are both enabled.
Check the script runs in the same user session as the logged-in user. Run Task Scheduler to run the script with the option Run only when user is logged on.
Check Focus Assist is not blocking notifications. Focus Assist settings can be found under Settings > System > Focus assist. Make sure it is set to Off or configured to allow notifications.
Have a nice day.
Best Regards,
Molly
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it