Does Knife bootstrap cmd works along pipe

Greetings Chef's
We have some linux RHEL servers on which it has passphrase set over .. when i ran knife boostrap command manually , i get a prompt to enter passphrase ,when i give the input ,command starts to be executing perfectly , but i when i try this same in a script by giving node name and keyfile in csv format and trying to read through script , i never get a user prompt to enter the passphare and it is directly showing error message as "stty: standard input: Invalid argument"

can i try running knife bootstrap command | while read -r line; do command "$line"; done , by passing as CL arguments?