`` he was in command of the garrison at fort william for four years or so , but he seems to have spent quite a bit of his time harassing the scottish countryside above the border on behalf of the crown .