We need Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll in order to execute script in the Local system
Download and install CSOM PowerShell by using below link
once download below dll's will be available in below location
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll
if you are running powershell first time in your PC and below error appears.
Windows Powershell – “Running scripts is disabled on this system”
Resolution:
Open powershell by Run as admin and run below command
set-executionpolicy remotesigned
Sharepoint Site collection admin permissions are enough to run CSOM Powershell.