[command] Batch save files contained in a folder

This code works in the command prompt, but not when I click on the file in the explorer.

#!/bin/bash
chmod +x test.sh


rm -rf D:/00_TAKROG/ATLAS_UNITS_AND_DOODADS/*
rm -rf D:/00_TAKROG/ATLAS_UNITS_AND_DOODADS_TEMPORARY/*
rm -rf D:/00_TAKROG/SPRITES/CHARACTERS/FACES/*



aseprite=“C:/Program Files (x86)/Steam/steamapps/common/Aseprite/aseprite.exe”



for file in D:/00_TAKROG/SPRITES/CHARACTERS/*.ase ; do
	
	if [[ "$(basename -- "$file")" == "faces.ase" ]]; then
		echo "exporting $file"
		"$aseprite" -b $file --save-as D:/00_TAKROG/SPRITES/CHARACTERS/FACES/{tag}.png
				
	elif [[ "$(basename -- "$file")" == "items.ase" ]]; then
		echo "exporting $file"
		"$aseprite" -b --split-layers $file --save-as D:/00_TAKROG/ATLAS_UNITS_AND_DOODADS/{layer}_{tag}_01.png
	
	else
		echo "exporting $file"
		"$aseprite" -b $file --save-as D:/00_TAKROG/ATLAS_UNITS_AND_DOODADS/{tag}_01.png
	fi
done

When I click on it, it will do everything before the :

aseprite=“C:/Program Files (x86)/Steam/steamapps/common/Aseprite/aseprite.exe”