Im trying to execute this piped command:
powershell.exe Get-ChildItem | Where-Object { $\_.Name -match "router" }
in GnuProlog:
:- initialization(main).
main :-
shell('powershell.exe Get-ChildItem \174\ Where-Object { $_.Name -match "router" }'), nl, halt.
It seems that shell predicate does not support piping, since the output is:
'Where-Object' is not recognized as an internal or external command, operable program or batch file.
warning: C:/prolog.pl:1: user directive failed
is there another way to do it?