Specify the /im parameter of taskkill:
taskkill /f /im <the program's file name>
E.g.:
taskkill /f /im bash.exe

learn.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill#examples
Specify the /im parameter of taskkill:
taskkill /f /im <the program's file name>
E.g.:
taskkill /f /im bash.exe

learn.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill#examples