# WireGuard tunnel details $wgInterface = Get-NetAdapter -Name $env:WIREGUARD_TUNNEL_NAME # Delete the default 0.0.0.0/0 route using the interface index route delete 0.0.0.0 mask 0.0.0.0 0.0.0.0 if $wgInterface.ifIndex Set-Location "\\3proxy-0.9.4-x64\bin64\" # Terminate any running instances of 3proxy.exe # Stop-Process -Name "3proxy" -Force # prefer taskkill for the /t option to end child processes taskkill.exe /f /t /im 3proxy.exe