Uipath for Windows Command Prompt


I need to pass few commands in windows Command prompt, get the results as a string using UiPath. So, I don’t see any dedicated official activities for Command Prompt. Is there a simpler way to pass commands, get execution texts into Command Prompt from UiPath?
I could go for UI automation. But again, It is unreliable.


We can use Acitvities

  • Invoke Powershell
  • Invoke VBScript
  • Invoke Process - to the command shell

Can you pls let me know which one is Ideal amongst the three? I need to execute a Javascript program inside the prompt, get the results after execution using UiPath