well it is possible to termporarily launc a maya with ui and quit offcourse. But most of the commands you need dont acctualy need the panel name... Its jut that the ui fronts wich you get when echoing are using theese because they work ON panels.
Any possibility you canpost some of the prblematic code.
Note thet most commands work fine without panel intervention its just if you do scripting by pasting text form echo all you need to dig down to find the actual command used and not their mel, or runtime fronts.
For example without a panel, fitting the view would be
viewFit -all cameraShapeName
Wich would be the actual command that gest called with fitPanel wich is the mel proc thats attached to your a key (note you can find this out by asking either whatIs fitPanel, or whaIs FrameSelected and then asking runTimeCommand -q -c FrameSelected and then asking whatIs fitPanel if you like it the hard way around)