I am using the following in a bash script:
command >> /var/log/somelog.log 2>&1&
Don't put the command in the background.
& character means "run this command in the background, while giving me a new shell prompt immediately."
command >> /var/log/somelog.log 2>&1& ^ this one
Just take that last character off the command, and the command will run in the foreground until it finishes.
This is frankly pretty introductory stuff. Have you considered reading any documentation about using the shell?