# 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](/content/product/documentation/building-blocks/data-driven/command-line/index.html).

If you have any questions, contact our [Priority Support](mailto:prioritysupport@leapwork.com "mailto:prioritysupport@leapwork.com") team.
