use Tk; use Tk::ExecuteCommand; $ec = tkinit()->ExecuteCommand( -command => '', -entryWidth => 50, -height => 10, -label => '', -text => 'Execute', )->pack; $ec->configure(-command => 'C:\\WINdows\\system32\\NOTEPAD.EXE'); $ec->execute_command; $ec->update;