All of my ONTAP PowerShell commands are, by default, running in debug mode. The commands all work, they are just prefaced with debug trace information. I'm running DataONTAP 9.8.0 & NetApp.ONTAP 9.13.1.2306. Sample output follows:
connect-nccontroller -Name johnnacm01 -Credential $(Get-Credential)
2023-09-01 13:30:57,060 INFO DataONTAP.C.PowerShell.SDK.ConnectNcController - Cmdlet invocation: connect-nccontroller -Name johnnacm01 -Credential $(Get-Credential)
2023-09-01 13:30:57,089 DEBUG NetApp.Ontapi.NaServer - Application name set to PowerShell Toolkit
2023-09-01 13:30:57,090 DEBUG DataONTAP.C.PowerShell.SDK.ConnectNcController - Trying HTTP/HTTPS
2023-09-01 13:30:57,090 DEBUG NetApp.Ontapi.NaServer - NaServer port changed to 443
2023-09-01 13:30:57,091 DEBUG NetApp.Ontapi.NaServer - NaServer Protocol changed to HTTPS
2023-09-01 13:30:57,091 DEBUG NetApp.Ontapi.NaServer - Proxy changed to
2023-09-01 13:30:57,091 DEBUG DataONTAP.C.PowerShell.SDK.ConnectNcController - Connecting to johnnacm01 via HTTPS
2023-09-01 13:30:57,093 DEBUG NetApp.Ontapi.NaServer - <netapp version='1.0' xmlns='http://www.netapp.com/filer/admin'><system-get-version /></netapp>