The parameters of executeCommandLine have changed.
The timeout is now the first parameter and has changed from integer in milliseconds to Duration type.
Then are following the command string(s).
Before it was one string, now it has to be splitted at every space delimiter or at the @@ delimiter.
Your old command:
val String results1 = executeCommandLine("ssh root@10.10.10.13 shutdown -r 2>/dev/null", 5000)
New command:
val String results1 = executeCommandLine(Duration.ofSeconds(5), “ssh”, “root@10.10.10.13”, “shutdown”, “-r”, “2>/dev/null”)