Invoke-sqlcmd using a Connection String with Secrets

It probably depends on which vault your credentials are located.
Maybe this could be the problem: