C:\pmd-bin-6.53.0\binto PATH, either
pmd.bat -d c:\src -R rulesets/java/quickstart.xml -f text
choco install -y pmd
pmd -d c:\src -R rulesets/java/quickstart.xml -f text
Our license: BSD-style.
Source Code: Check it out on github