Hey @ronald,
Keyboard Maestro has a Put Computer to Sleep action.
I've never actually used pmset
for this, so I can't speak from experience.
However – this reference looks like it explains things well enough.
http://www.macos.utah.edu/documentation/administration/pmset.html
-Chris