GET-Content .\game.log -Tail 1 -Wait | ForEach-Object { # Add this script to C:\Program Files (x86)\Steam\steamapps\common\War of Rights If($_ -like '*steamUsername killed*') { # Replace 'steamUsername' with your Steam username Write-Host "Enemy killed" -ForegroundColor Green $player = New-Object -TypeName System.Media.SoundPlayer $player.SoundLocation = "$PSScriptRoot\burp_x.wav" # Use your own wave file to play a sound when you kill someone and update the filename here; put it in the same directory as the script $player.Play() } }