How to programatically open push notifications

Could you kindly help me write a script that simulates the opening of push notifications in a new tab without user interaction. I want the push notifications to open in a new tab without me having to click on them.

I tried autohotkey script and tampermonkey script but they did not work. I was expecting to see push notifications open in a new tab without me having to click the notifications themselves.