Running Entire Folder of Scripts With PowerShell benjf.com.blog@benjf.com, 2022-08-30 $server = "SERVERNAME" Get-ChildItem "C:\Users\JSchmoe\Desktop\testrun\" | ForEach-Object{ & Invoke-Sqlcmd -ServerInstance $server -InputFile $_.FullName } Powershell