Hi!
I try to run the following syntax as a shell command but i get this error message: dsquery failed: '|' is an unknowen parameter

part of the script:
$shellcmd = "dsquery computer domainroot -name %computername% | dsmove -newparent " +chr(34)+"OU=MultiWS,DC=something,DC=something,DC=something"+chr(34)+ "-u something -p something"
shell '$shellcmd'

It seems to be this sign | thats the problem because if i write it into cmd it works..? is there a CHR(??) for this sign....?

Thanks