Something we appreciate about PowerShell and dbatools is that there are often a number of perfectly valid ways to solve the same problem. Considering this, some of the questions have multiple answers.
Some answers are different ways to express the same solution.
Get-Command *dbareg* -Module dbatools
# or