Storing image with consistent filename

Instead of using a BAT file, can you test with a VBS or Powershell script? This usually works better.

Example:

XRUN | Powershell.exe | -executionpolicy bypass -file C:\Users\qa2\Desktop\lockscreen1.ps1

Note: make sure to add -executionpolicy bypass, otherwise the script does not start.