title: Add-Member AliasProperty to sub property in PowerShell
body: <p>I have an object that has an array of objects as a property.</p>
  <pre><code>PS C:\&gt; $Object
  
  GroupType        : Object
  StateRevCounter  : 3846
  SchemaTag        : Computer
  PropGroupList    : {DSM.MdsPropGroup, DSM.MdsPropGroup, DSM.MdsPropGroup, DSM.MdsPropGroup...}
  
  
  
  PS C:\&gt; $Object.PropGroupList
  
  Tag                       PropertyList
  ---                       ------------
  BasicInventory            {DSM.MdsTypedPropertyOfString, DSM.MdsTypedPropertyOfString, DSM.MdsTypedPr... 
  ClientInfo                {DSM.MdsTypedPropertyOfNullableOfDateTime, DSM.MdsTypedPropertyOfNullableOf... 
  Computer                  {DSM.MdsTypedPropertyOfString, DSM.MdsTypedPropertyOfNullableOfDateTime, DS...
  CustomPatchManagement     {DSM.MdsTypedPropertyOfNullableOfBoolean, DSM.MdsTypedPropertyOfString}        
  HardwareBasedRemoteMgmt   {DSM.MdsTypedPropertyOfString, DSM.MdsTypedPropertyOfNullableOfBoolean, DSM...
  
  
  
  PS C:\&gt; $Object.PropGroupList.PropertyList
  
  TypedValue                                  Tag                                        Type
  ----------                                  ---                                        ----
  7.4.1.4461                                  ClientVersion                            String
  Client                                      ComputerRole                             Option
  169                                         CPUArchitecture                     CatalogLink
  2262                                        CPUType                             CatalogLink
  DSMCLIENT00.Computers.ideri.dev             DirectoryContext                         String
  DSMClient00.ideri.dev                       FullQualifiedName                        String
                                              InfrastructureRole                       Option
  000C29E1B2FD                                InitialMACAddress                        String
  227                                         InstalledOS                         CatalogLink
  315                                         InstalledOSCulture                  CatalogLink
  1458                                        InstalledOSFlavor                   CatalogLink
  Windows 10 Enterprise 1511                  InstalledOSFriendlyName                  String
  DSM.MdsVersion                              InstalledOSVersion                      Version
  4193                                        InstalledRAM                              Int32
  66057                                       LastBootServer                            Int32
  .....
  </code></pre>
  <p>Now I want to create AliasProperties for $Object to show the values of <code>$Object.PropGroupList.PropertyList</code> directly within the output of $Object and update the values at the right spot, if the AliasProperty is changed.</p>
  <p>Desired output:</p>
  <pre><code>PS C:\&gt; $Object
  
  BasicInventory_ClientVersion   : 7.4.1.4461
  BasicInventory_ComputerRole    : Client
  BasicInventory_CPUArchitecture : 169
  ...
  GroupType                      : Object
  StateRevCounter                : 3846
  SchemaTag                      : Computer
  PropGroupList                  : {DSM.MdsPropGroup, DSM.MdsPropGroup, DSM.MdsPropGroup, DSM.MdsPropGroup...}
  </code></pre>
  <p>So if I then update BasicInventory_ClientVersion to for example 10.4.2.3333, the corresponding value in the sub property (array) is updated as well and vice versa.</p>
  <p>Is this even possible with <code>Add-Member -MemberType AliasProperty</code>? Or can I only add AliasProperties for properties in the root of the object?</p>
  <p>Regards
  Sebbo</p>