Other Configuration Manager-related features and issues
0x87d01106 - Failed to verify the executable file is valid or to construct the associated command line.
It's saying that Configmgr did not recognize the '***.cmd', can be a syntax error. What about if you rename the .cmd to a .bat as I always using a bat.
Another recommended way is using 'Running script function' which is straightforward an simple.
https://learn.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-deploy-scripts