Selenium does not have anything to do with posting test results into a Test Management System.
Please help keep this forum relevant by posting queries that are only related to Selenium.
Based on the test runner you are using [ JUnit (or) TestNG ] the approach would piggy back on the Test Runner.
For e.g., if I were using TestNG as my Test Runner, then I would basically create a listener which would listen to onSuccess() events for a @Test method and then post the results back into the TCMS [ Microsoft Test Manager in your case ].