Command shell does not save image in folder home/pi

hello people.
i want the save foxy.jpg inside folder home/pi

if i run SSH and put the line:

wget “http://192.168.1.239:81/snapshot.cgi?user=admin&pwd=teste&resolution=32” -O foxy.jpg

the image foxy.jpg is saved in the folder.

but through shell_command .yaml
wget “http://192.168.1.239:81/snapshot.cgi?user=admin&pwd=teste&resolution=32” -O foxy.jpg

the image does not save, why?