private static async Task<string> SetSsid(string Token, string netid, UpdateSsid ssid)
        {
            using (HttpClient client = new HttpClient())
            {
                string numberval = ssid.number.ToString();
                string jsonString;
                string uri;
                uri = $"https://dashboard.meraki.com/api/v0/networks/{netid}/ssids/{numberval}";
                jsonString=JsonSerializer.Serialize<UpdateSsid>(ssid);
                
                var content = new StringContent(jsonString);
                content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
                
                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(
                    new MediaTypeWithQualityHeaderValue("application/json"));
                client.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type", "application/json; charset=utf-8");
                client.DefaultRequestHeaders.Add("X-Cisco-Meraki-API-Key", Token);

                var response = await client.PutAsync(uri,content);
                var contents = await response.Content.ReadAsStringAsync();
                
                return contents;
            }
        }
 private static string ProcessRecordAsync(string Token, string netid, UpdateSsid ssid)
 {
     var task = SetSsid(Token, netid, ssid);
     task.Wait();
     var result = task.Result;
     return result;
 }
        // This method will be called for each input received from the pipeline to this cmdlet; if no input is received, this method is not called
        protected override void ProcessRecord()
        {
            UpdateSsid ssid = new UpdateSsid();
            ssid.name = name;
            ssid.number = number;
            ssid.enabled = true;
            if(String.IsNullOrEmpty(authMode)){
                ssid.authMode = authMode;
            }
            

            WriteVerbose("Entering Get Orgs call");
            var list = ProcessRecordAsync(Token, netid, ssid);

            ResponseSsid result = JsonSerializer.Deserialize<ResponseSsid>(list);
            WriteObject(result,true);

            WriteVerbose("Exiting foreach");
        }