Create document library from template with PowerShell

I’m attempting to create a document library from a .stp template. To my knowledge the script worked and now its not. I get an error when the following is executed:

$  ListCreation.ListTemplate = $  ListTemplate 

Exception setting “ListTemplate”: “Cannot convert the “Microsoft.SharePoint.Client.ListTemplate” value of type “Microsoft.SharePoint.Client.ListTemplate” to type “Microsoft.SharePoint.Client.ListTemplate”.”

I thought it may be the that I’ve referenced the wrong dll’s .

Have re-installed:

  1. Microsoft.SharePoint.Client.dll v 16.0.6518.1200
  2. Microsoft.SharePoint.Client.Runtime.Portable.dll v 16.0.6518.1200

Any ideas on the error ?