Hello @Robert Martin ,
Welcome to Microsoft QnA.
Pause command ideally suspends the processing of a batch program, but you can press any key for it to continue, except CTRL+C and then Y (only then it is ideally supposed to stop the batch program). However, I have seen people face issues similar to yours.
I have found a Stack Overflow thread relevant to your situation, can you check it and let me know if it helps? If it doesn't help, please respond back to me and tag me and I shall look further into debugging it. Thank You.
Thread reference -> Batch-file-command-pause-does-not-work
----------------
Please accept as answer
and upvote
if the above provide information was helpful so that the relevancy of this post on community increases.