Ensure that the execute calls are in new sessions.

- For posix, this change stops the subprocesses from opening a tty to
  get input from user, as that would greatly disrupt the flow of the
  application that might be using this.