End user script to automate button click for opened webpage in Edge

Browser based application, to retrieve files they have to click a button ie Get-File, depends on file queue if they receive one, may take multiple clicks. Previously had a powershell script that would emulate a key press when this was a command/dos type application.

Researching it seems Selenium may be an option with Javascript. How would this work in practice though, if the user opens the application in Edge, later navigates to the retrieve file page(where the Get-File button is), what would be the easiest way to automate the button click every few seconds. Is it possible to have a script on their desktop to double click that would somehow pickup the current active browser/tab(w pid or active window?) and have the hardcoded – uri requested every couple seconds, once they get the files needed they can just close the script?

There is a change order in place to implement a toggle switch on the webpage by the developer later on, was hoping I could get something going in the meantime. Not sure if it’s even doable.

Thanks(not looking for coding, mainly if this is possible or better idea)