I\'m trying to execute a powershell from a batch file with the commande: Powershell .\\nameoffile.ps1
The PowerShell returns some values 1, 4, 0 and -1 . How can I get t
powershell "&{.\test.ps1 %* ;exit $LastExitCode}" set code=%errorlevel%