Modified the script a little bit, yet not able to login cookie=$(cat cookies.txt | grep -o "COOKIE.*" | cut -f2)…