How do I set the ListExperienceOptions of a list to ClassicExperience using the PnP-Powershell? I have tried this
# Create the list to hold work Types New-PNPList -Title "Work Types" -Url "WorkTypes" -Template GenericList -EnableVersioning -OnQuickLaunch -OutVariable $WorkTypesList $WorkTypesList.ListExperienceOptions = 2 SWorkTypesList.Update() $WorkTypesListID = $WorkTypesList.Id
but it just trashes my library. Do I need to import the CSOM libraries?