Running Entire Folder of Scripts With PowerShell Writer #1, 2022-08-302024-07-05 $server = 'SERVERNAME' Get-ChildItem 'C:\Users\JSchmoe\Desktop\testrun\' | ForEach-Object{ Invoke-Sqlcmd -ServerInstance $server -InputFile $_.FullName } Powershell