The command listed in the yaml is not interpreted by /bin/sh
, which is why the multiple commands are not handled here.
At present it would probably be easiest to create a shell script containing what you want to execute, and use that in the command:
attribute.