If, on an application made by the owner of any land, it appears to the sheriff that the occupier of that land is preventing the owner from executing work which the owner is by this Act required to execute, the sheriff may order the occupier to permit the execution of the work.