How to Run Perl From PowerShell
PowerShell is a powerful scripting language from Microsoft. It is used to write automated scripts to perform tasks on local and remote Windows PCs and features many advanced features. It is only available for Windows. Perl is another powerful scripting language --- not from Microsoft --- which is also very popular and widely-used. It is possible to run Perl from your PowerShell program.
Things You'll Need
- Latest version of PowerShell installed on your computer.
- Latest version of Perl installed on your computer.
Instructions
-
How To Run Perl From PowerShell
-
1
Open the "PowerShell" command window.
-
2
Type the following into the PowerShell command window:
"c:\perl\bin\perl.exe" and press "Enter." Perl will now run.
-
-
3
Type "Exit" and press "Enter" to quit the PowerShell window.
-
1
Tips & Warnings
You can also run a Perl script by adding its path and name to the end of the command in Step 2.
Replace the path with the location of Perl on your computer, which may be different from the example in Step 2.
The Invoke-Expression cmdlet (commandlet) can also be used to run other applications and scripts.
Check your security settings for PowerShell. By default they are very restricted and may interfere with any scripts or commands you wish to run.