If you want to maximize an already-running program/window you can try with windowMode.bat using its title (or a string that the title starts with):
@echo off
call windowMode -title "Notepad" -mode maximized
Or with its process id:
@echo off
call windowMode -pid 1313 -mode maximized
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…