Code updated to handle any PSObject when piping in ProtectedData objects, so long as it has the right properties to build an actual ProtectedData object.