Below is my sample script for you:
$date1=get-date("08/21/2020")
$date2=get-date("08/11/2020")
Connect-PnPOnline https://tenant.sharepoint.com/sites/michael
Get-PnPRecycleBinItem | ? {($_.DeletedDate -gt $date2 -and $_.DeletedDate -lt $date1) -and ($_.DeletedByEmail -eq 'john@contoso.com')} | Restore-PnpRecycleBinItem -Force
Reference: restore-recycle-bin-sharepoint-online-with-powershell
powershell-recursive-folder-restore
If the response is helpful, please click "Accept Answer" and upvote it.