This command creates a button labeled printfoo that executes the command print foo on dedicated:
pushbutton printfoo print foo on dedicated