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.
Merge pull request #71 from briantist/patch-1

Allow for the shortened notation of [PSCredential]