Enabling Email and filepolling port using Webmethod service

Hello Experts,
I have a requirement where I need to disable and enable a webmethod filepolling and an email port using a webmethod service.
I just wanted to ask whether it is possible using any webmethod inbuilt service. If yes can you please tell the service name and also what input we need to pass in the service. (Example will be very helpful)

Use the below ones present in WmRoot. Use at your own risk.

WmRoot/wm.server.net.listeners:listListeners

WmRoot/wm.server.net.listeners:enableListener

WmRoot/wm.server.net.listeners:disableListener