To install in a path with spaces, the segment containing the space must be double-quoted. Something like:Quoted just to confirm that this works for me. To anyone having problems, try the following:
-The Path where you have saved/unzipped the AMAI files (including the InstallTFTToMap.bat) should not contain any blanks.
-The map on which you want to install AMAI should not contain any already existing triggers, scripts etc (for example, w3champions maps may cause issues because of this). Just take a plain melee map.
InstallTFTToMap.bat "C:\Users\paulo\Documents\Warcraft III"\Maps\AMAI_test
perl InstallTFTtoDir.pl "C:\Users\paulo\Documents\Warcraft III"\Maps\AMAI_test