There are many links that shows how to change the settings for Global and Current navigation and we can use Get-PnPNavigationNode
to modify the navigation nodes for the Quick Launch but I can't find anything that enable/disable the Quick Launch and Tree View under Navigation Elements. Is it possible with SharePoint PnP/CSOM?
Image attached for clarification
Thanks in advance