"Migration users homefolders to OneDrive with Microsoft SharePoint Migration Tool"
But there are some limitations, and in many cases, it might be simpler to just script the process. Microsoft has also created a guide for that too.
The guide are called "Upload on-premises content to SharePoint Online using PowerShell cmdlets"
The guide is decent, but I wanted to help people understand it and be able to use the script without to much SharePoint knowledge.
I have just copied the script from Microsoft into my Github to try to make it more understandable and created a video showing how it works
Be aware that you must run this on a domain joined computer with a user that have access to the files and fulfil the necessary prerequisites, including "SharePoint Online Management Shell" . The target are a OneDrive site for a user in my example, but it will work against any site where the user have permission.
You can download the simple version that makes it easier to understand the process from HERE
The more modified version that still might get new features from HERE
or visit my GitHub repository to check out some of my other scripts HERE
Direct link to video are HERE