if /i not "{terminal_codepage}"=="" chcp {terminal_codepage}>nul {shell_command}