Hi,
Thanks for posting in Microsoft MECM Q&A forum.
1,Based on my experience, we could try to put the batch script in the Scripts folder of your deployment share; the location will be %SCRIPTROOT% and we'll run something like cmd.exe /c %SCRIPTROOT%\application.bat. If you want to use a different folder in the deployment share, just remember the variable %DEPLOYROOT% points to the root of your share. You could run it from %DEPLOYROOT%\Custom\application.bat, for example, where Custom is a folder you've created in the deployment share.
2,We could also deploy the .bat file as application in MDT. Refer to:
ASK MDT Guy: Adding Scripts as Applications to MDT
Note: This is non-Microsoft link, just for your reference.
3,We could also add applications to the MDT deployment share before creating your task sequence. Refer to:
Step 4: Add an application
Thanks for your time.
Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
https://learn.microsoft.com/en-us/answers/articles/67444/email-notifications.html