If I want to download a file from sharepoint online within a powershell script I can use:
Get-PnPFile -Url $filePath -Path $LocalFolder -Filename $fileName -AsFile -force
However I have a database of item id's instead of file names. I know the folder they exist in and I want to download them by id.
The ID's that exist in the DB are fileId I think.