Thanks to both of you for your suggestions!
I was working on a TASKLIST + TASKKILL method of terminating the started task, and ended up with:
:: the title can be any arbitrary string, which then appears in the list of tasks
title %~n0
set forcmds=tasklist /v /nh /fi "imagename eq cmd.exe" ^^^| findstr /i /c:"%~n0"
:: the PID appears as the second tasklist output field
for /f "tokens=2" %%a in ('%forcmds%') do taskkill /pid %%a
This works quite well, but Herbert's suggestion of
cd /d %temp% & start "" cmd /c "%~n0.bat"
means that I can use
exit /b 0
or
goto :eof
as the final statement in the batch file, and have this close the started task.