This caught me by surprise since Export-Credential takes a PSCredential object as position parameter 1.