Replacements for ampersand and double-ampersand in PowerShell
The &
operator in PowerShell is just the ;
or Semicolon.
The &&
operator in PowerShell has to be run as an if
statement.
Command ; if($?) {Command}
Example:
tsc ; if($?) {node dist/run.js}