I need a way to track updates/modifications to a file in real time and run a batch script when they take place, I have tried this to no avail, which may be due to it being open in the program that is logging output to the file, but
Get-content filename -Tail 0 -Wait
in powershell will show me any updates that happen to the file, is there any way for me to make it launch a script when a change is detected or any other way to do so. I need it to be in either batch or powershell script.