How to deal with import VAT or duty on the goods which are temporary imported into the UK and then re-exported after work is complete on them?

It may be appropriate to entre such goods into inward processing procedure. See the link for more details how to reduce VAT or duty on imports.