Bug 1139684 - eap cli script does not get correct result code for eap domain server on windows

When running the CLI on Windows, make sure no "pause" message is shown after script execution
Otherwise the CLI process will just keep running so we'll never get the exit code
[BZ 1114202] check for empty list when computing metrics and clean up type params