Now the Shell session is opened once.
Removed batch command executing from CommandLine. Added termination indicator and exit code checking to every command.