This repo has scripts done in Powershell to interact with MSSQL databases.