How to restart IM gateway plugin in commandline mode?

How to restart IM gateway plugin in commandline mode?

IM Gateway is no longer supported here as the plugin has been replaced by kraken. support for kraken is provided on the developer’s website not here.