I dont know. I tried to use the GUI on HPC cluster and it runs and i get the expected results.I believe its the issue with the TUI command.

Does linux have a different tui command syntax? Because the above tui script works without any problems on windows