Will AC switch work for DC
You cannot use a 6A switch with a 20A load.  You may also run into issues with lower voltage rating at DC, but that hardly matters as you are already so far beyond the current rating.