Hi,
Welcome to Microsoft Community.
Based on the description, we do understand your demand to restore files from SharePoint Recycle Bin with running PowerShell Scripts. If so, I'd like to share the following details.
1.If during a specific time, there has no extra actions but only a user deleted files in the Library, then I'd like to suggest using Restore Library feature in SharePoint Online. For reference: Restore a previous version of an item or file in SharePoint (microsoft.com)
2.If it still needs PowerShell for a more automatic way, kindly check if the following references will help.
Restore all files but ones that already exist from the recycle bin using PowerShell - Microsoft Tech Community
Restore Deleted Items from Recycle Bin in SharePoint Using PowerShell - SharePoint Diary
How to restore SharePoint files with PowerShell (sposcripts.com)
***Disclaimer:***Microsoft provides no assurances and/or warranties, implied or otherwise, and is not responsible for the information you receive from the third-party linked sites or any support related to technology.
We are sorry to convey that engineers in this category focus on the out-of-box features in SharePoint and it is suggested to seek more detailed support about PowerShell scripts on communities like Microsoft PowerShell Community or Microsoft Tech Community. Your understanding is highly appreciated!
Best Regards,
Mia