Not enough information.
"On completion of flying..." - do you mean when you actually completed your flight i.e. arrived at your destination or when you just want to pause/stop the flight for the time being in order to resume it later?
The other question is how exactly do you
"...reduce the programme to the task bar..."
I suggest to do the following:
When you want to pause/stop the sim for some time without actually exiting, hit
P for Pause, next hit the Window key (usually adjacent to the Alt key on your keyboard).
The result will be twofold: Your Program Menu will pop up which you simply ignore by clicking anywhere on your desktop to make it disappear, secondly your sim will have minimized to the task-bar. It's quite safe there, nothing happens, it's merely in stand-by mode not using up any resources which leaves you free to do other stuff such as writing that urgent email to your sweetheart
Now when you're done and you want to go back to flying, click on the little Microsoft Flight thingy on your task-bar, hit
P to un-pause the game and you'll find you're exactly where you were when you paused the flight.
I'm not sure which Menu you're referring to. If it's the Menu bar on top of your screen, you'll have to hit Alt for it to appear. This will pause the game until you've made your selection.