I do see two things you can fix. First is that you do not need to prefix a multiple line string with | in starlark; this is only required when writing yaml. Second is the commands attribute is a string array; your example assigns a string where a string array is expected.