open/close built in serial monitor from WITHIN sketch

It would be useful to me at times to be able to open and close the built in serial monitor using code in a sketch. I can't find any info on this anywhere. Is it possible?

You can't. The Serial Monitor is a program running on your PC and the Arduino has no control over PC programs.

...R