in reply to running command line from Perl
> # this runs fine from command line
which is powershell? (look at the preceding PS)
> `` works perfectly fine on macOS
MacOS supports PS?
TIMTOWTDI, but this works for me
C:\tmp>perl print `powershell Invoke-Command -ScriptBlock {"get-wmiobject Win32_Co +mputerSystemProduct | select-object -ExpandProperty UUID"}` __END__ C44A693E-8B14-11EC-6464-A0542DA054C5
Only tangentially a Perl question, you need to find ways to execute your PS from CMD ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: running command line from Perl
by karlgoethebier (Abbot) on May 18, 2022 at 13:40 UTC | |
by LanX (Saint) on May 18, 2022 at 14:32 UTC | |
|
Re^2: running command line from Perl
by Anonymous Monk on May 18, 2022 at 12:11 UTC | |
by LanX (Saint) on May 18, 2022 at 12:41 UTC | |
by Anonymous Monk on May 18, 2022 at 14:50 UTC | |
by NetWallah (Canon) on May 18, 2022 at 15:14 UTC | |
by LanX (Saint) on May 18, 2022 at 15:48 UTC | |
by ikegami (Patriarch) on May 18, 2022 at 17:57 UTC | |
by LanX (Saint) on May 18, 2022 at 12:12 UTC | |
by Anonymous Monk on May 18, 2022 at 12:44 UTC |