The documentation for Invoke-DbaQuery mentions many other similar functions
This function is a wrapper command around
Invoke-DbaAsync, which in turn is based onInvoke-SqlCmd2. It was designed to be more convenient to use in a pipeline and to behave in a way consistent with the rest of our functions.
There are of course other ways to query SQL from PowerShell, e.g. Invoke-Sqlcmd.
What are the benefits of using Invoke-DbaQuery instead of Invoke-Sqlcmd, Invoke-Sqlcmd2, and Invoke-DbaAsync?