Recently I got some questions on how to work with my PowerShell module for OneDrive. Therefor, I put together some examples.
Remember: The OneDrive module is for OneDrive personal and doesn’t work with OneDrive business / Sharepoint.
First: Register an app (authentication) for OneDrive: https://www.sepago.de/blog/onedrive-powershell-module-new-version-with-improved-authentication/
Authenticate to OneDrive
Show files and folders
Create new folder in OneDrive
Copy files from local to OneDrive
Copy file from OneDrive to local disk
Delete file in OneDrive