I'm not sure what error you're experiencing/needing help with...
Some CIFS shares are not being shown when using the ONTAP CLI (e.g. "cifs share show -vserver NAME"), but are correctly reported in the GUI and when using PowerShell (e.g. "Get-NcCifsShare -Vserver NAME")?
You are unable to create a CIFS share using PowerShell because it already exists?
How are you creating the CIFS share? What is the PowerShell code you're using? How are you checking to see if the share name already exists?
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.