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
You can use tee-object.
This will display the returned value in host console.