protected void SafeWriteOutputPSObject(string typeName, params object[] args) { PSObject customObject = this.ConstructPSObject(typeName, args); WriteObject(customObject); }