In Windows' native CMD processor, you can use
& to string commands together so that one runs immediately after the other. A
&& will run the second command only if the first completes without error.
This is different from piping commands together with
| in that output from the first command is not sent to the second command, the commands are just simply run one after the other and output for each is sent to its usual place.
However, I get an error when I try to use
&& in PowerShell. Are there similar functions available in PowerShell, or is this feature being deprecated?