Programatically Controlling the functionality of Connect Tunnel.
The SonicWall Secure Mobile Access Connect Tunnel client supports command‐line utilities that can modify the normal run‐time behavior of the client and enable you to perform troubleshooting and diagnostic tasks without using the standard graphical user interface.
Controlling the functionality of the Connect Tunnel client from a programming or scripting language enables you to integrate it with your applications for a more complete and robust overall solution.
Above link provides information on how to use Windows Remote Access Service (RAS) to develop client applications that access network resources secured by an SRA EX‐Series or Secure Mobile Access appliance through the SonicWall Secure Mobile Access Connect Tunnel client. The RAS interface to the client enables the application developer to control how the Connect Tunnel client connects to the remote VPN and what, if any, prompting is performed.