Execute a command in the context of a package