How to script like bash<( curl demo.sh ) in packer shell

Hi,
I am working on building an image on AWS. with script which has bash<( curl xxx.sh) included but failed to run/build. Does anyone know how to make it works? or this method is not support in provisioners?
json:

  "provisioners": [
    {
            "execute_command": "echo 'ubuntu' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
            "type": "shell",
            "script": "./open.sh"
    }

open.sh:

#!/bin/bash
whoami
echo 'Start'
echo 'Y' | bash <( curl -k https://raw.githubusercontent.com/salman-bhai/hello-world/master/Bash/hello-world.sh )
echo 'End'

hello-world.sh content is just “echo hello World”

#!/usr/bin/env bash
echo "Hello World!!"

Error msg:

==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Provisioning with shell script: ./open.sh
==> amazon-ebs: + whoami
==> amazon-ebs: + echo Start
    amazon-ebs: root
    amazon-ebs: Start
==> amazon-ebs: /tmp/script_4409.sh: 4: /tmp/script_4409.sh: Syntax error: "(" unexpected
==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...