Create PS Credential from Strings

$Username = 'Username'
$Password = 'Password'
$SecureString = ConvertTo-SecureString $Password -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential $Username, $SecureString
Details
Use to create a credential object from two different string objects. Warning, only use in labs/testing as credentials are saved in plain text