i have been trying to get the percentage of fragmentation in a sql server using powershell DbaTools commands like this:
Get-DbaHelpIndex -SqlInstance "m0