Powershell needs proper exit code

Powershell needs proper exit code