include psobject functions in parent function