View actual Powershell command being executed

I’m using the Invoke Powershell activity to call a Keepass scripting command. When I run the command in Powershell directly it executes just fine and fetches credentials for example.

In UiPath however I can successfully execute the command, but when I include parameters it returns an error saying the command is not recognized. This error comes from the Keepass script, so that is called successfully. For some reason the parameters are passed to Powershell incorrectly I assume.

Is there a way for to show the actual command that is passed to Powershell including the parameters?

In this particular case I’m not authorized to use the script functionality.

Edit: To clarify, the command I’m using in Powershell directly is:

P:\SomeDirectory\KeePass\KPScript -c GetEntryString P:\SomeDirectory\Database.kdbx

This returns OK: Operation completed successfully.

However in UiPath, using the following settings for the invoke activity, I’m getting a command not recognized error:

CommandText “P:\SomeDirectory\KeePass\KPScript”
Parameters name: c
Direction: In
Type: String
Value: “GetEntryString P:\SomeDirectory\Database.kdbx”

Hello @Disberg_Arnaud!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly