Does PowerShell have an equivalent to this command construct from sh (and derivatives):

$ cmd1 && cmd2

where cmd2 is only run when cmd1 exits sucessfully?

I know you can combine commands with a semicolon. However, this disregards the exit status of commands.

Edit
Report