The script is available for download from http://gallery.technet.microsoft.com/How-to-upload-a-file-to-a-8b1424ef. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This script will help users to upload a file to a library or OneDrive for Business of SharePoint Online.
This script is to help users to upload a file to a library or OneDrive for Business of SharePoint Online using Client Object Model.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery