Zend certified PHP/Magento developer

How do I prevent an exe and Powershell on Windows / PC to stop running altogether? [closed]

It is quite strange that on a couple of PCs with Windows 11, I’d try running some crypto mining software (as a hobby), and after 1 day or 2, the whole Powershell can be gone. (the app stopped running, and the Powershell disappeared too).

And I think it is not due to the PC / Windows updating and rebooting, because Google Chrome is still there showing the page I last opened. If it was a reboot, I think Google Chrome will not start itself, and even if it does, it should ask me whether I’d like to open the page that was “closed unexpectedly”.

The command in the .bat file is this:

PhoenixMiner.exe -some-flags-here
pause

So the pause should kick in even if PhoenixMiner.exe crashed or stopped. It is a bit mysterious why that would happen. Is there a way to make it not happen?

I have already turned off McAfee’s (1) live scan (2) scheduled scan (3) auto update, so it should not be related to that. Also if McAfee did run, it just simply delete my PhoenixMiner.exe altogether without asking, but the program PhoenixMiner.exe wasn’t deleted in this case.

Is there a way to prevent the app and Powershell both stop running and disappear? Perhaps using Command Prompt instead of Powershell but I doubt it’d help.