Hi there,
i've a custom command with multiple powershell scripts (for clearance reasons).

If for example the frist script produces an error i Write an Error but the next scripts are still beeing executed.
Is there a way that I can stop further scripts/actions or complete stop the custom command execution when an error will be produced?
I havn't tried with an simple exit 1; I only Write-Errors on issues.
Kind regards,
Constantin