While it is possible to move files between Teams sites and between OneDrive users, it does not seem feasible to move files from Teams to OneDrive and vice versa, using Powershell.
The restriction is happening due to the domain differences between OneDrive and Teams.
OneDrive URL: https://org-my.sharepoint.com
Teams URL: https://org.sharepoint.com
After connecting to one of the above you are only able to use relative URLs with the Move-PnPFile command and will be unable to point to the other domain.
Connect-PnPOnline -Url https://org.sharepoint.com Move-PnpFile -ServerRelativeUrl "/teams/MyTeam/Documents" -TargetServerRelativeLibrary "/personal/user_domain_com/Documents/"
Will throw an error due to not locating the target.
How can we transfer files between these domains in the same organization without downloading and uploading files to/from a local disk?