Public/ps1/Sql/Start-LeftConnectJobSqlThread.ps1

function Start-LeftConnectJobSqlThread {                                                                                                                                               
    param ($taskInformation)
    
    $sqlConfiguration = Get-LeftConnectSqlConfiguration
    Start-Job -InitializationScript $functionsThread -ScriptBlock {
        Start-LeftConnectJobSql -taskInformation $taskInformation -sqlConfiguration $sqlConfiguration
    } -ArgumentList $taskInformation, $sqlConfiguration | Wait-Job| Receive-Job
}