Functions/Invoke-SivRsDeployment.ps1

function Invoke-SivRsDeployment {
    [cmdletbinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string]$Citrix,
        [Parameter(Mandatory = $false)]
        [string]$AppExe = "Siv.exe",
        [Parameter(Mandatory = $false)]
        [System.IO.FileInfo]$TestDestinationFolder = "\\denu1s300\PH-CLIENT-FMO$\SIV_BMS\TEST\RS",
        [Parameter(Mandatory = $false)]
        [System.IO.FileInfo]$AccDestinationFolder = "\\denu1s300\PH-CLIENT-FMO$\SIV_BMS\ACC\RS",
        [Parameter(Mandatory = $false)]
        [System.IO.FileInfo]$ProdDestinationFolder = "\\denu1s300\PH-CLIENT-FMO$\SIV_BMS\PROD\RS",
        [Parameter(Mandatory = $false)]
        [System.IO.FileInfo]$DeploymentLogFolder = "\\rssi05ms0006\data$\Unit-IT\SIV\Deployment Log"
    )

    switch ($Citrix) {
        "TEST" {
            $DestinationFolder = $TestDestinationFolder

        }
        "ACC" {
            $DestinationFolder = $AccDestinationFolder
        }
        "PROD" {
            $DestinationFolder = $ProdDestinationFolder
        }
    }

    $Export = [pscustomobject]@{
        DestinationFolder   = $DestinationFolder
        AppExe              = $AppExe
        DeploymentLogFolder = $DeploymentLogFolder
    }

    return $Export
    #Remove-Variable SourceFolder, App, TEST, ACC, PROD, AppExe, FolderBrowser, Check, Verzija, DeploymentShowParams, MsgBox -ErrorAction SilentlyContinue
}