but $alignment is a Perl file handle (that you explicitly opened), and you can't pass Perl file handles to other programs via system() arguments... Maybe you just want to pass the respective output filename instead (the one you used in the open())?
...
my $alignment = "$maid_dir\\${maid}_aln.out";
my $command = qq(c:\\blast\\bin\\blastall -p blastn -d "$hu_seq $hd_se
+q" -i $contig -o $alignment);