Use nexec winservername nsh -c "cd /tmp; ls"
Can you please let me know what are you trying to do ?
First check r u able to get information from below command
Working client #agentinfo MachinName(windows server 2008 sp1 64bit os)
ls is not a windows command, nor is nsh, so this would only work if you have cygwin or nsh installed on the target.
also - nexec'ing nsh doesn't make much sense here...
if you want to do a ls of tmp you can run:
is this just a test command or what are you trying to accomplish here?