Why Does Powershell Keep Closing