You really shouldn't use ENV: as a temp directory, that's what T: is for.
Also, why use a filename starting with a "."? In Unix/Linux, this is a hidden file, and some ported software or components may still carry that idea over. I'm not sure if it affects any of what you are trying, but why not eliminate any possibilities?
E.g. "notepad T:usb.log" works fine for me.