Cannot serialize the credential. If this command is starting a workflow, the credentials cannot be persisted, because the ...

Cannot serialize the credential. If this command is starting a workflow, the credentials cannot be persisted, because the process in which the workflow is started does not have permission to serialize credentials. 

-- If the workflow was started in a PSSession to the local computer, add the EnableNetworkAccess parameter to the command that created the session. 
-- If the workflow was started in a PSSession to a remote computer, add the Authentication parameter with a value of CredSSP to the command that created the session. Or, connect to a session configuration that has a RunAsUser property value.