Explorer/Demo-New-Explorer.ps1


Import-Module $("$PSScriptRoot\Explorer.psm1") -Force

$schema = "C:\Users\nmukhin\L95224\Profiles\ManagedSitesUS\termSet.xml"
$source = "PATH"

$f = Explorer -schema $schema -source $source
$f.OnCommand({
    Write-Host ("this = $($($args[0]).GetType().Name)")
    Write-Host "Command"
    Write-Host($($args[1]) | FL | Out-String)
    Write-Host "Args = $($args[2]) "

    $global:explorer = $($args[0])
    $global:command  = $($args[1])
      
    #Start-Process PowerShell -ArgumentList $($args[2])
})
$f.OnClose({ $global:explorer = $null })

$f.Run2()