I'm trying to execute the script located below, but I'm getting the error:
System.Management.Automation.PSArgumentException: Constructor not found. Cannot find an appropriate constructor for type Mi crosoft.SharePoint.Client.ClientContext. at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
The script is located here: https://gallery.technet.microsoft.com/office/How-to-add-users-to-1d3e69f9
I have both assemblies on the folder where the script is located at:
Microsoft.SharePoint.Client
and Microsoft.SharePoint.Client.Runtime
Could you please guys help?