Chain commands on the PowerShell command line (like POSIX sh &&)
There is no direct analog to && or ||. There are several discussions on alternatives though. Here is one example:
conditional execution (&& and ||) in powershell
Try this:
$errorActionPreference='Stop'; cmd1; cmd2