Get-VMCNotificationPreference fails to parse the URL because the variable notifPreURL converts the first half of the URL to \\ like https:\\vmc.vmware.com\api\notification/loggedin/user/preferences due to the split-path function on line 756.