This should nail it then:

SHELL'%COMSPEC% /C ""C:\Program Files\Symantec\LiveState Recovery\Advanced Server 3.0\Agent\CommandFiles\psservice.exe" \\hocacomms1 query "totalcoms agent" >"test54.txt""'

-Shawn