Help with NetCat

I am trying to send a simple command using netcat. If I got to a webrowser and type in
http://192.168.1.20:4444/test it shows an acknowledgement and works.
I have tried to follow the guides. I have added the line
shell_command: !include shell_commands.yaml
I have then added a shell_commands.yaml file with the folliwng info
jgaragetoggle: echo “test” | nc 192.168.1.20 4444

I can add the action from automation but it isnt working. I can not find a good guide to what I am missing. I have tried echo -e “test” | nc 192.168.1.20 4444. I have tried “test\n” | nc 192.168.1.20 4444 Can anyone tell me or even better tell me and send me in a direction to learn what I am missing
Thank YOu

That is because HA ships with a broken version of netcat. If you want to help get this fixed, then add a vote here Upgrading default version of netcat could allow improved HA performance - #7 by salsaman

Would socat possibly be an alternative?

Curl was the answer for me. curl http://192.168.1.20:4444/test