Some issues on Catalina

on Mojave, I used to use a script with BTT to quit every open App, and it worked great. After I updated to Catalina, it takes almost 1 minute to run. I don't know where the problem is. Maybe you can help me out here.

Here is the script:

-- get list of open apps
tell application "System Events"
	set allProc to displayed name of (every process whose background only is false) as list
end tell
-- quit each app
repeat with eachProc in allProc
	set eachProc to eachProc as text
	if eachProc ≠ "Finder" then
		tell application eachProc to quit
	end if
end repeat

tell application "Finder"
	if visible is true then set collapsed of every window to true
end tell

delay 1