@MiPakTeh , It is necessary for the app to have the Admin Power if we want to use WMI to monitor if the process is stopped.
Therefore, we have to force the app to run as Administrator all the time.
Please refer to the following steps to do it.
First, Please add a Application Manifest File in your app.
Second, Please modify the code in the manifest file like the following:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
Third, Please restart your vs 2019.
Finally, the app can be used it in everybody with the Administrator Power.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.