Shell Command help please

i have created a shell command in configutation.yaml

shell_command:
copytheimage: cp /media/frigate/clips/{{filename}} /media/frigate/clips/people/

If i call the service manually it works and the file copies:-

However when i have exactly the same as an action it doesnt work. The file hasnt copied:-

Any ideas why this action doesnt work please?