Have a look at desktop flows and RPA features:
Desktop flows broaden the existing robotic process automation (RPA)
capabilities in Power Automate and enable you to automate all
repetitive desktop processes. Automating is quicker and easier than
ever with the new intuitive Power Automate desktop flow designer using
the prebuilt drag-and-drop actions or recording your own desktop flows
to run later.
https://learn.microsoft.com/en-us/power-automate/desktop-flows/introduction
But easier (and cheaper) might be other solutions:
- OneDrive Sync Client:
You can use the OneDrive sync client to sync your SharePoint document library to your local machine. Any files, folders, or subfolders that you copy to the synced folder on your desktop will automatically upload to the corresponding location in SharePoint.
Pros: Easy setup, real-time sync, no scripting required.
Cons: Limited to OneDrive/SharePoint and relies on the local sync process.
SharePoint Migration Tool (SPMT)?
PowerShell Script with PnP PowerShell?
Copy-PnPFile [-SourceUrl] [-TargetUrl] [-Overwrite] [-Force] [-IgnoreVersionHistory] [-NoWait] [-Connection ]