variable not matching param ($SqlCredential) name
variable not matching param ($SqlCredential) name

The $Credential variable should be $SqlCredential (the parameter).

This way we can connect to the instance using SQL Authentication
alevyinroc/dbatools