Copy the script above and paste it in your PowerShell terminal. Run as Administrator for SQL Server commands.