Dirichlet Feynman-Kac Representation Formula