cmd: Use the console output codepage to read batch files.
To prevent performance degradation, we will cache the result returned by GetConsoleOutputCP() after executing any external command.
To prevent performance degradation, we will cache the result returned by GetConsoleOutputCP() after executing any external command.