Allow for the shortened notation of [PSCredential]

The function was testing for `[System.Management.Automation.PSCredential]` but didn't know what to do to handle `[PSCredential]`. I just changed the `-like` to an `-imatch` to make it work either way.