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.
There is an npm package to publish test results back to either microsoft teams or slack.

<https://www.npmjs.com/package/test-results-reporter>

You need to create an incoming-webhook and a simple config file to get started.

If you are using Azure DevOps, add the below command in your pipeline yaml file.

```
- script: npx test-results-reporter publish -c config.json

```