Clink is a powerful command-line editing utility for Windows.
cmd.exe
C:\opt\clink\clink_x64.exe autorun install echo @echo off>%LOCALAPPDATA%\clink\clink_start.cmd
Now, whenever cmd.exe starts, Clink is invoked automatically.