It would be beneficial to allow passing an entire and not just the Token.
Not that the Invoke-Sqlcmd uses the metadata that comes with the whole AccessToken (like ExpireOn, UserID, etc...), but it would save the trouble of having to .Token on it + make it consistent with the other cmdlets that (in v22) are happy to take a full AccessToken.
It would be beneficial to allow passing an entire and not just the Token.
Not that the Invoke-Sqlcmd uses the metadata that comes with the whole AccessToken (like ExpireOn, UserID, etc...), but it would save the trouble of having to
.Token
on it + make it consistent with the other cmdlets that (in v22) are happy to take a full AccessToken.