osascript -e "tell application \'Finder\' to set desktop picture to POSIX file \'/path/3Q83dROp3Fk.jpg\'"
You put the same quotation marks for the paths as the script itself in the shell command. I hope this helps.