The chroot utility allows you to change its root directory to the one indicated in newroot and, if given, executes the command.
chroot newroot [command]