I have Windows 10 with xampp installed.
Let's assume I have a PHP script, containing

```
set_time_limit(0);
ignore_user_abort(true);

$counter = 0;

while($counter < 60){
    file_put_contents('runtime_log.txt', $counter." \r\n", FILE_APPEND);
    $counter++;
    sleep(1);
}

```

I can close the browser window and the script will be still writing output to runtime\_log.txt
If I wanted to check if it's running in the background on Linux, I would use

```
ps aux | grep php

```

How to do the same thing on Windows?

**EDIT:** I have simplified my question, because I can see that it's been misunderstood.