Since you're joining the channel later through script, add this:

JOIN -n #channel
window -h #channel