Hi Will, welcome.
Short answer: Yes.
Long answer: WinDbg offers a quite powerful mechanism called "Debugger Commands Programs
". In fact this is a simple script-language where you can use all commands available in WinDbg and some additional control flow tokens. With this in mind you can actually write powerful scripts and conveniently store them into files. From within WinDbg you simply call your script-file in question with "$$><
" (the human translation of which is "Run Script File").
I briefly covered this topic in WinDbg. From A to Z!
; refer to slides 77-80
For more details you might also check the official Microsoft documentation:
I hope this helps.
Warm Regards, RK