Adding window presentation control to startup and shutdown scripts