Fix nightly test failure (#14251) The created files have the same filename, creating conflicts. Fix this by adding a unique suffix.
Add proc_open escaping for cmd file execution