You wrote about batch file... OK. In the PSPad you have option for file autoupdating. You can find it on the Window menu or the file tab context menu as "Autoupdate window"
Autoupdate interval is in the program settings / Editor 2 Ctrl+R immediately reload your file -- <https://forum.pspad.com/read.php?2,70872,70896> PSPad freeware editor https://www.pspad.com