Add the ability to block while command finishes executing

If block=True and redirect_output=True execute_command will block
until the process terminate itself.