The script is available for download from http://gallery.technet.microsoft.com/How-to-remove-OneDrive-66e2d6ea. 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 is to remove OneDrive from the Windows Explorer Navigation pane in Windows 8.1. Some users want to remove OneDrive from the Windows Explorer Navigation pane due to some reasons.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery