functions/Get-AnalysisPrep.ps1

Function Get-AnalysisPrep
{
    [cmdletbinding()]
    param(
        [Parameter(Mandatory=$true)]
        [string]$AnalysisPrepID
    )

    $uri = $CDXSERVER + "/api/analysis-prep/" + $AnalysisPrepID

    $PrepState = Invoke-RestMethod -Uri $uri -Method Get -Headers $headers -ContentType "application/json" 

    Write-Verbose ( $PrepState | Format-Table | Out-String )

}