Changing a folder to a One Note Document in CSOM for SharePoint

I am trying to amend the Prog-ID on a Sharepoint folder so I can change it to a One note document.

Here is my code in CSOM, but it just says Prog-ID is read only, but I have read this can be done, any ideas ?

#Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"  ##Variables for Processing $  SiteUrl = "" $  ListName="" $  FolderName="" $  UserName="" $  Password =""  #Setup Credentials to connect $  Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($  UserName,(ConvertTo-SecureString $  Password -AsPlainText -Force))       #Set up the context     $  Context = New-Object Microsoft.SharePoint.Client.ClientContext($  SiteUrl)      $  Context.Credentials = $  credentials      #Get the List Root Folder     $  ParentFolder=$  Context.web.GetFolderByServerRelativeUrl($  ListName)      $  folderCollection = $  ParentFolder.Folders       $  Context.load($  folderCollection) $  Context.ExecuteQuery()        foreach($  folder in $  folderCollection)     {         $  folder.ProgId = “SharePoint.DocumentSet”         $  folder.Update()       }