Script to Restart Third Party Module

I was checking solution to Restart Module(Third Party) installed on Gateway using Gateway Scoped Script.
Please suggest Ignition script.

Thank you in Advance for support.

Hey shamsundar.chirwatka,

As far as I know, there are no system functions or user friendly ways to get your modules to restart through scripting. You can reference our Java JDK documents for more information on how to actually approach this. However, I am unable to provide further guidance since the work around is not directly supported. Here are some documents that you may find useful.

Accessing Java Libraries:
https://docs.inductiveautomation.com/display/DOC81/Libraries#Libraries-AccessingJava

Information on the restartModule method.
https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/ignition/gateway/model/ModuleManager.html#restartModule(java.lang.String)

Information on ModuleManager
https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/ignition/gateway/model/ModuleManager.html

I hope these help!