The chemical reactions and pathways involving polyacyltrehalose, a pentaacylated, trehalose-based glycolipid.