Powershell Check Script For Errors