shell.executable("bash")

rule a:
    output:
        "test.out"
    params:
        test=1
    shell:
        "echo {params.test} > {output}"