Before submitting a bug report:
Steps to Reproduce
$cred = Get-Credential
# server1 is a docker container, no SSPI auth
'server1' | Install-DbaMaintenanceSolution -SqlCredential $cred -ReplaceExisting -BackupLocation /backups -InstallJobs
Expected Behavior
Run without errors
Actual Behavior

Details
Calls to Agent commands don't inherit $SqlCredential variable.
Before submitting a bug report:
powershell -NoProfile)Steps to Reproduce
Expected Behavior
Run without errors
Actual Behavior
Details
Calls to Agent commands don't inherit
$SqlCredentialvariable.