Dim shl As Shell 'jShell Lib v1.52
Dim Args As List
Args.Initialize
Args.Add("-jar")
Args.Add("tool.jar")
Args.Add("Args1")
Args.Add("Args2")
Args.Add("Args3")
Args.Add("Args4")
shl.InitializeDoNotHandleQuotes("shl","/opt/jdk-14/bin/java", Args)
shl.WorkingDirectory = "/opt/CloudServer"
shl.Run(10000)
Wait for shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log(Success & "; ExitCode = " & ExitCode)
Log("StdOut = " & StdOut)
Log("StdErr = " & StdErr)