I have a batch file in my workflow that runs a tabcmd command to export as csv to a folder "A". Then a powershell script that selects the columns I want, reorders them, and moves it to another folder "B". I then have another powershell script to convert that csv file to excel and move it to the final folder "C".
When I run the workflow in designer, it works perfectly. However, when I publish it to gallery and run it, only the tabcmd script (to folder "A") and first powershell script (from "A" to "B") works. The last one doesn't do what it's supposed to - it doesn't move it to the final folder (from "B" to "C"). I don't get an error in Gallery however, it says the workflow was successful. What could be my issue? It doesn't make sense to me how the workflow shows successful in both designer and gallery but where the powershell script works just fine in designer but not gallery. Please see attached for powershell script (--- to omit proprietary data)