(echo abc 行末)|findstr "行末 $"
は一致する
スペースが入るみたいだね