How to run PowerShell from command-line block?
How to run PowerShell from command-line block?
In Leapwork, many times, users are required to use PowerShell scripts that are executed in different scenarios specific to the user requirements.
Users can use Command Line Block in Leapwork to run the PowerShell script which has been created for the user-specific scenario.
Whenever you want to trigger the PowerShell script from the Command Line, use the command below, which will trigger the PowerShell script -
powershell <%PowershellScriptFilePath%>
You can execute any command, as you would on a PowerShell prompt.
As an example -
To get a better insight into how Command-Line building block works, click here.
If you have any questions, contact our Priority Support team.