Este es un script de ejemplo escrito en Mirage PowerCLI. Detalla el proceso para centralizar terminales en Mirage PowerCLI.

param($server, $username, $password, $volumename, $policyname)

"--------Connect-MirageServer-------"
Connect-MirageServer $server $username $password -TrustUnknownCertificate

"----------Get-MirageVolume---------"
$volume = Get-MirageVolume $volumename | Select-Object -First 1
if (!$volume)
{
    "Cannot retrieve volume with name $volumename."
    return
}
$volume

"----------Get-MiragePolicy---------"
$policy = Get-MiragePolicy $policyname | Select-Object -First 1
if (!$policy)
{
    "Cannot retrieve policy with name $policyname."
    return
}
$policy

"------Get-MiragePendingDevice------"
$device = Get-MiragePendingDevice | Select-Object -First 1
if (!$device)
{
    "There is no pending device on Mirage server."
    return
}
$device

"--------------CEFlow---------------"
$cvd = $device | New-MirageCvd -Policy $policy -Volume $volume
if(!$cvd)
{
    "CE flow failed"
    return
}

"CE flow starts"
while ($cvd.OperationProgress -ne 100 -or $cvd.State -ne 'Idle')
{
    Start-Sleep -s 20
    $cvd = Get-MirageCvd -Device $device
}
$cvd
"CEflow successful."