Question: I need to clear the sessions created using Invoke-RestMethod.

Sessions stored in ws variable in below line. 

```
Invoke-RestMethod -Method Post -Uri $page -Body $Params -sessionvariable ws

```

Answer: 
If you are Using Jenkins to schedule the tests, you can use the Post Build Actions > Editable Email Notification in you build job.

* Add Project Recipient List - In this option you can add any number of email recipients. Refer the image for more details -
[Project Recipient List in Jenkins](https://i.stack.imgur.com/ufXMM.png)
* If you need to integrate with your Microsoft Teams Channel, you can get the email for that channel by following the below steps:
	+ Go to the channel name and click More options More options button > Get email address.
	+ This option needs to be enable by your IT admin.
* Also you can look at incoming web hooks option in Microsoft Teams [here](https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using)
* So, if you have any CI/CD server (like Jenkins) notifying test results, you can integrate any email address in the post build action of the Job.
You can also use Travis CI to send the notifications to your teams channel. Here are the steps. 

1. Pick your team and the relevant channel (Ex: Your Team > General)
2. click on the three little dots on the bottom of channel > more apps (screenshot below)

[![enter image description here](https://i.stack.imgur.com/jFVDk.png)](https://i.stack.imgur.com/jFVDk.png)

3. Then select connectors > and pick travis CI> install it.

[![enter image description here](https://i.stack.imgur.com/FHzR6.png)](https://i.stack.imgur.com/FHzR6.png)

4. You have now two options. Now you can easily login in to Travis CI (assuming you have account and configured your TESTNG reports) and make a connection or as mentioned above get the email address and configure it in your build.
5. When ever TESTNG build reports are complete this channel will be notified as an "Adaptive cards".

Hope it helps.