Hallo,
ich habe ein Problem mit der Ausführung eines CmdLet aus einem Code-Block der bei Klick eines Forms Buttons ausgeführt wird.
Rufe ich das identische CmdLet nativ im Script auf und nicht im Kontext des Forms, dann funktioniert es einwandfrei. Das CmdLet ist Bestandteil einer ladbaren Bibliothek die per Import-Module in die PowerShell Sitzung geladen wird.
Konkrete Frage: Ist die Laufzeitumgebung innerhalb eines Windows-Form Dialogs eine andere als die der nativen PowerShell Sitzung?
Gruß
Alex