Public/Get-NoteProperties.ps1
Function Get-NoteProperties { <# .SYNOPSIS Accepts an array and returns all note properties .PARAMETER Array array of objects .OUTPUTS Outputs a flat array of strings from provided arrays note property list .EXAMPLE $Array Name Location ------- -------- Luke CE Joseph CE Get-NoteProperties $Array "Name", "Location" $Object --------------- Name : Luke Location : CE Get-NoteProperties $Object "Name", "Location" #> [CmdletBinding()] param ( [Parameter( Mandatory )] $ObjorArray ) Return ($ObjorArray | Get-Member | Where-Object { $_.MemberType -eq "NoteProperty" }).Name } |