79799910

Date: 2025-10-26 08:36:11
Score: 0.5
Natty:
Report link

PowerShell treats $myargs as one single argument, while tasklist expects /FI and its filter expression to be separate arguments.

Try passing an array of parameters:

$myfilter = "foo"
$myargs = @("/FI", $myfilter)
tasklist @myargs
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ezra