Could someone try to help me out to run a Perl program from a PowerShell script? I'm trying to save the script results into a PowerShell variable.
So far, I have tried the below from the Powershell ISE. But it does not seem to be working.
perl 'C:\Program Files (x86)\ABC\ABC Software\bin\testcheck.pl -print verbose'
Powershell Script Path: C:\MyScripts
Perl Program Dir: C:\Program Files (x86)\ABC\ABC Software\perl\bin\perl.exe
perl 'C:\Pr...in\testcheck.pl -print verbose'->perl 'C:\Pr...in\testcheck.pl' -print verbose. If that doesn't help you need to provide more information. Did you add the path to the Perl executable in your PATH envirenment variable. Also, how exactly is it "not working"?perl.exeisn't in your path. You'll need to provide the full path toperl.exe(& 'C:\Program Files (x86)\ABC\ABC Software\perl\bin\perl.exe' 'C:\Program Files (x86)\ABC\ABC Software\bin\testcheck.pl' -print verbose)& 'C:\Program Files (x86)\ABC\ABC Software\bin\testcheck.pl' -print verbose)