Executing command on command line

is it fine if i use this in item

Switch power
Switch channelup
…
…

and now in rule

import ???
rule “anything it doesnot matter”
when
Item power received command ON
then
executeCommandLine(“irsend SEND_ONCE ~/akaitv.conf KEY_POWER”)
end