Untested but try this:

$g = '%COMSPEC% /C ""' + $LSPath + 'pslist.exe" >"' + $LSPATH + 'pslist.txt""'

-Shawn