Your file misses an amsdos HEADER. An amsdos header is just 128 bytes added before the file data which containing useful informations like user, size file, address of loading (when you invoke LOAD on a binary file), address of execution (when you invokes RUN on a binary file)...
Hideur Maikeur is a small util which allows you to add this header. Its use is simple, and yo can use it in a batch script because is a command line util. The syntax looks like a famous GNU C compiler :).