protected override async Task ProcessRecordAsync()
        {
            var createResult = await DkrClient.Networks.CreateNetworkAsync(new NetworksCreateParameters()
            {
                Name           = Name,
                Driver         = Driver,
                Internal       = Internal,
                CheckDuplicate = CheckDuplicate,
                EnableIPv6     = EnableIPv6,
                IPAM           = IPAM,
                Options        = Options,
                Labels         = Labels
            });

            if (!String.IsNullOrEmpty(createResult.Warning))
            {
                WriteWarning(createResult.Warning);
            }

            if (!String.IsNullOrEmpty(createResult.ID))
            {
                WriteObject(await NetworkOperations.GetNetworksById(createResult.ID, DkrClient));
            }
        }
 protected override async Task ProcessRecordAsync()
 {
     if (Id != null)
     {
         foreach (var id in Id)
         {
             WriteObject(await NetworkOperations.GetNetworksById(id, DkrClient));
         }
     }
     else if (Name != null)
     {
         foreach (var name in Name)
         {
             WriteObject(await NetworkOperations.GetNetworksByName(name, DkrClient));
         }
     }
     else
     {
         foreach (var n in await DkrClient.Networks.ListNetworksAsync())
         {
             WriteObject(n);
         }
     }
 }