Whenever I try to run it with the alias that you provided and the call that I showed above it gives a "/msg: insufficient parameters" error which makes me believe that the alias is not returning a value otherwise it would print that return value. As to why its not working for me, i have no idea.

EDIT: I also have no blank lines in the textfile.