Add New-ObjectFromGenericType and StoredCredential