BROKLYN-55 add wait for brooklyn to be running in the script