How to achieve providing input for variables while a bachfile is executing? [like ‘read’ in unix scripts]