FTP Backup Login incorrect WIN 10 batch

Does it run from Command Prompt but not from a batch file? Is there a % around? If so, double to %%.