Enable project setting programatically: Custom Depth-Stencil Pass

when using this command, my project will not maximise, it stays in taskbar shows it on hover but i am unable see it on any screen.