0

I'm writing an Powershell-cmdlet in c#, that should behave like this:

if(RequirementsDoNotMeet)
{
   ExitCmdletAndReturnToPowershellCommandline()
}

How can I make this kind of "Cmdlet.Exit" work?

piccus

1

1 Answer 1

1

try use simply instruction

  return
Sign up to request clarification or add additional context in comments.

2 Comments

Thx. I did some modification to make return solve tzhe problem.
Happy then. Set my response like a possible solution then :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.