We have migrated all the selected file and folder from oneDrive by a internal tool, now, all the permission of selected files and folders, need to migrate to SharePoint Online by powershell script. Can it be possible?
Permission / Inheritance is not something we can migrate separated from objects.
In this scenario, you can only set permissions to the files and folders using PowerShell and the permission needs to be specify manually.
Here are some links with samples for your reference: