Are you able to open file.bat in the Line 4 pathname?
Wondering what that .bat file might be. I.e., the commands inside.....
Use Notepad to view.
Overall, the script is looking for and counting Powershell processes
Script seems to be built around the following link:
https
/serverfault.com/questions/9038/run-a-bat-file-in-a-scheduled-task-without-a-window
See the script along side "139".
The script you found may be some "prank" or simulated virus, or just an exercise in general....
Just need to understand what file.bat is doing.....
Then unravel it all.