Cannot execute batch file through exportToOpenStudio component, but can run if we run batch file directly

I am trying to run energy simulation using exportToOpenStudio component applying measure with
Load OpenStudio Measure. However, I get following error from exportToOpenStudio component because batch file generated and executed fail to run and cannot produce the result files in run folder.

  1. Solution exception:Could not find a part of the path ‘D:\Kat\Model_Case1\OpenStudio\run\pre-preprocess.idf’.

However, when I run the batch file directly as shown below, it can run simulation correctly.
Does anyone know why this happens and how to solve?

@KatsuyaObara ,
If you can run it outside of Rhino, then the issue might be with the permissions that Rhino has to interact with that folder. Are you able to run any OpenStudio simulation our of that folder or is it only the simulations that have OpenStudio measures assigned to them?