There's a bunch that's confusing here. First: you can restructure your remote command entirely within awk:
awk 'BEGIN { cmd="ps aux"; while( (cmd | getline) >0) {if($0 ~ /xyz/) print $11}}'
If you happen to know which field you expect "xyz" to occur in, you can test that directly and eliminate your negative test (which I've omitted above). We can add that back if you insist:
awk 'BEGIN { cmd="ps xyz"; while( (cmd | getline) >0) {if($0 ~ /xyz/ && $0 !~ /awk/) print $11}}'
But say I'm interested in what user clamav is up to:
awk 'BEGIN { cmd="ps aux"; while( (cmd | getline) >0) {if($1 ~ /clamav/) print $11}}'
Another issue is that you're defining and echoing an environment variable remotely, which introduces a bunch of complications. Why not exploit SendEnv instead. Generally this is LANG LC_*, but the latter is liberal as to what it allows:
export LC_command="awk 'BEGIN { cmd=\"ps aux\"; while( (cmd | getline) >0) {if($1 ~ /clamav/) print $11}}'"
ssh -o USER@HOST 'echo $LC_command'
Other options include providing a script or shell function which can be executed remotely, which avoids a lot of SSH & shell quote fumbling.
Any more clarification on what you're hoping to accomplish?
grep xyz | grep -v grep | awk '{...}'is more simply expressed asawk '/[x]yz/{...}'