Hello,
To import PowerShell Credentials stored in a XML File like I showed you previsouly proceed as follow:
[ps]$Credential = (Import-Clixml -Path "$Path\Credentials.xml")[/ps]
The $Credentials can now be used like credentials for any cmdlets requiring authentication.