Both SharePoint and OneDrive now have connectors in Power Automate Desktop that allow downloading files. You do need to have a paid license and set up a connection in the cloud flows. But once you have that, it is fairly simple to use the related actions.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution.
If you like my response, please give it a Thumbs Up.
If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/