tossolution.com
Export-AdfsDeploymentSQLScript ADFS PowerShell - TOSS
The Export-AdfsDeploymentSQLScript cmdlet generates the SQL scripts that you can use separately to create the ADFS database and to grant permissions.