I’m pretty new to PowerShell and automation so this may be an easy answer. When automating my DMT Loads through PowerShell, how would I go about kicking off multiple loads at one time? For instance if I break my Bill Of Operations into 4 csv files, how do I get them all to run instead of 1 at a time?
Just omit the -Wait parameter
$DMTPath = “C:\Epicor\ERP10\DMT.exe”
$User = “epicor”
$Pass = “epicor”
Start-Process -FilePath $DMTPath -ArgumentList "-User $User -Pass $Pass -Add -Update -Import `“Job Operation`” -Source `“C:\DMT\Job Operation_1.csv`” "
Start-Process -FilePath $DMTPath -ArgumentList "-User $User -Pass $Pass -Add -Update -Import `“Job Operation`” -Source `“C:\DMT\Job Operation_2.csv`” "
Start-Process -FilePath $DMTPath -ArgumentList "-User $User -Pass $Pass -Add -Update -Import `“Job Operation`” -Source `“C:\DMT\Job Operation_3.csv`” "
Please note the BackTick is used to escape quotes inside the ArgumentList - necessary if the string contains spaces.
3 Likes
Thank you