I wrote the code to open the cmd and then change its title. It is working till opening the cmd but it is not writing anything there.
import pyautogui as pg pg.ho