Helper/Remove-BCDevObjectProperty.ps1
function Remove-BCDevObjectProperty { param ( [Parameter(Position=0, Mandatory=$true)] [PSObject]$Object, [Parameter(Position=1, Mandatory=$true)] [string]$PropertyName ) if ($PropertyName -in $Object.PSObject.Properties.Name) { $Object.PSObject.Properties.Remove($PropertyName) } Return $Object } Export-ModuleMember -Function RemoveP@ssw-BCDevObjectProperty |