Setting up PowerShell for SPO
The very first thing you want to do is to get the required SharepointClient dlls.
You have the option of either getting them from the Sharepoint Online Management Shell install folder with the caveat that you will have a limited number of dlls to interact with Sharepoint.
If you want to go for the dev version( and all the dlls you can use), you can download the Sharepoint CSOM dlls from either
2. Sharepoint Online CSOM official page
The difference between the two is that the Nuget version is more frequently updated than the official page so you will benefit from the most recent available methods
if you download the nuget package (recommended as is more recent) , rename the file from .nupkg to .zip, enter the archive and retrieve the dlls under
Save them under C:\tools\
You are done!