param ([int] $numProcs = 1) set-location c:\work\pshell\Presentation #clean up the table Invoke-sqlcmd -Query 'DELETE FROM tMessage' -Database 'factory' for ($i = 0; $i -lt $numProcs; $i++) { Start-Job C:\work\pshell\Presentation\runTest.ps1 }