Bash code to interact with IWM