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:

Information on the restartModule method.

Information on ModuleManager

I hope these help!