Types/StreamDeck.Profile/get_Children.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 |
if (-not $this.HasChildren) { return } @(if ($this.IsChild) { $this.Parent | Split-Path | Join-Path -child Profiles } else { $this | Split-Path | Join-Path -child Profiles }) | Get-ChildItem | Get-StreamDeckProfile -ProfileRoot {$_.fullname } |