in reply to lpr command from perl not working.

Change $cmd to @cmd. You're essentially calling:
system('C:\\ABCDEFGH.txt') or die "cannot do this";