#include <WinAPIEx.au3>
$sScriptName = "AutoIt v3 Script.au3"
$aProcList = ProcessList("AutoIt3.exe")
For $i = 1 To UBound($aProcList)-1
$sCmdLine = _WinAPI_GetProcessCommandLine($aProcList[$i][1])
If StringRegExpReplace($sCmdLine, '^.*\\|"+$', '') = $sScriptName Then
ProcessClose($aProcList[$i][1])
EndIf
Next