adds a function which resolves chocolatey exe/bat