Here is one simple PowerShell WPF Treeview example. You can use this example in different PowerShell tools.

WPF_TreeView_Example_2

WPF_TreeView_Example_1

You can download the code from here [download id=”168″]