Help on Rotation Macro

Hello,
id like to have a macro for following spells
warbreaker (45 cd)
sharpen blade (25 cd)
mortal strike (5 cd)
slam

is it possible without “empty” button hits? so it doesnt hit an ability which is on cd?
Thanks guys