$LASTEXITCODE and $? In Powershell
Its a powershell built-in variables that tells if last command/script executed successfully or failed. Its used to perform error handlingse either in scripts or from command lines easily. $LASTEXITCODE: This… Read more »