How to start any process in Invoke Power Shell?

Hi all, i have one question, how i can start an Process… for example an archive in desktop?

Hi @GabrielMoreno,
Here you have very nice tutorial about PowerShell invoke:

1 Like

Hi @Pablito thx, but do I really need to create a script to run a simple command?

No. This was just example for PS script. For “oneliners” you can use only Invoke PowerShell activity.

1 Like

Hi @GabrielMoreno,

I think a simple command to archive would be :

Compress-Archive -Path C:\Desktop -DestinationPath C:\Archives\Draft

However in case you want to pass the folder path as an parameter rather than hard coding, you can follow the integration steps mentioned above. You need not read the script from file, you can store it in variable or directly pass it to Invoke Powershell activity as mentioned by @Pablito .

2 Likes