Typing contest program, how to open the program to automatically call the specified input method

at present, I have written a typing contest program in node, which is similar to Kingsoft typewriting. The input method is written by former employees of the company and needs to be switched after installing the input method. Now to achieve the function is to open the competition software, to automatically call this input method, mandatory use, can not switch other input methods (or can be switched, but after switching to type, will prompt you to use the XXX input method).
introduce the competition software, written in node"s express, packaged into desktop applications with NBuilder after writing, generate .exe installer, and open it after installation.
the current idea is to use CPP to solve the problem, but it is a pity that CPP, is said to be able to operate the registry with bat. All of these have not been touched. Is there any way to solve this problem? I can provide the source code if necessary.

Mar.01,2021

what kind of system is your computer, win7 or 8 or 10

Menu