Public/ps1/Job/Start-ApprxrPipelines.ps1

<#
    .SYNOPSIS
    Starts all Apprxr pipeline jobs.
 
    .DESCRIPTION
    This function retrieves all pipeline names and starts a remote job thread for each, including a default receiver.
 
    .EXAMPLE
    Start-ApprxrPipelines
 
    .NOTES
    Used to initialize all configured pipelines in the Apprxr system.
#>

function Start-ApprxrPipelines {
    # Get all pipeline names
    $pipelines = Get-ApprxrPipelines
    # Start a remote job thread for each pipeline
    $pipelines | %{
        write-host Starting pipeline $_
        Start-ApprxrRemoteJobThread -name $_
    }
    # Start the main receiver job
    write-host Starting main receiver Default
    Start-ApprxrRemoteJobThread -name Default
}