Skip to content

Add-CitrixApplication

Citrix: Adds a Citrix application

param(
	[Parameter(Mandatory = $true)]
	[string]$Name,

	[Parameter(Mandatory = $true)]
	[string]$CommandLineExecutable
)

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	$app = New-BrokerApplication -Name $Name -CommandLineExecutable $CommandLineExecutable -ErrorAction Stop
	Write-Output $app
} catch {
	Write-Error $_
	exit 1
}

The display name of the application.

The path to the application executable.

An interactive directory of PowerShell scripts.