protected void CheckCmdletParameters() { if (CmdletParametersCheckingOn) { var eExit = new Exception("Parameters checked"); throw eExit; } }