In Leapwork, you may be required to use Powershell scripts to be executed in scenarios specific to user requirements.
Users can use the Command Line Block in Leapwork to run the PowerShell script which has been created for these user-specific scenario.
The screenshot below refers to the "Copy_Move.ps1" which is a demo PowerShell script that was created to move a file from destination A to destination B.
Note: For more information about how Command-Line building block works, Click Here
Whenever you want to trigger the PowerShell script from the Command Line, use the command below, which will be trigger the PowerShell script
For clarification, please contact our Priority Support.