Executing power shell but failing on one command through BigFix

Hi All, I have made a fixlet to run a power shell script but it is repeatedly failing on one command as mentioned below followed by its screenshot, please suggest remediation on it:-1:

Get-ChildItem -Path $searchinfolder -Filter $filename -Recurse -ErrorAction SilentlyContinue | select $hostname, {$_.FullName} | export-csv -Append -NoTypeInformation c:\temp\Output.txt

Please suggest the right pattern to have the output fetched. Thank you!!

Regarding Log4j I have the latest update of BigFix forum, though client is still forcing us to find the traces through power shell.

I have the below script can you suggest which line to be ammended:-1:

Need 2 open curlies to escape relevance substitution.

Also typo in -ExecutionPolicy

2 Likes