Citrix.Workloads.Portability.psm1

$files = @("Auth.ps1", "CCRestMethod.ps1", "JobParamMethods.ps1",  "ExportMethods.ps1",  "PrepareMethods.ps1", "DiagnosticMethods.ps1", "ReverseMethods.ps1", "ConvertMethods.ps1", "PlatformMethods.ps1", "UpgradeMethods.ps1",
            "Start-IpsAwsExportJob.ps1", "Start-IpsAwsPrepareJob.ps1", "Start-IpsAwsDiagnosticsJob",
            "Start-IpsVsphereExportJob.ps1", "Start-IpsVspherePrepareJob.ps1", "Start-IpsVsphereUpgradePvsJob.ps1", "Start-IpsVsphereReverseImageJob.ps1", "Start-IpsVsphereConvertToUefiJob.ps1", "Start-IpsVsphereDiagnosticsJob.ps1",
            "Start-IpsAhvExportJob.ps1", "Start-IpsAhvPrepareJob.ps1", "Start-IpsAhvDiagnosticsJob.ps1",
            "Start-IpsAzureExportJob.ps1", "Start-IpsAzureDiagnosticsJob.ps1", "Start-IpsAzurePrepareJob.ps1", "Start-IpsAzurePrepareAndPublishJob.ps1", "Start-IpsAzureConvertToUefiJob.ps1",
            "Start-IpsGcpExportJob.ps1", "Start-IpsGcpPrepareJob.ps1", "Start-IpsGcpConvertToUefiJob.ps1", "Start-IpsGcpPrepareAndPublishJob.ps1", "Start-IpsGcpDiagnosticsJob.ps1",
            "Start-IpsXenExportJob.ps1", "Start-IpsXenPrepareJob.ps1", "Start-IpsXenConvertToUefiJob.ps1", "Start-IpsXenDiagnosticsJob.ps1",
            "Get-IpsJob.ps1", "Wait-IpsJob.ps1", "VersionCheck.ps1", "Log.ps1",
            "Get-IpsCredentials.ps1", "New-IpsCredentials.ps1", "Set-IpsCredentials.ps1", "Remove-IpsCredentials.ps1")

foreach ($file in $files) {
    $fullPath = Join-Path -Path $PSScriptRoot -ChildPath $file
    try {
        . $fullPath
    }
    catch {
        Write-Error -Message "Failed to import $($fullPath): $_"
    }
}