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