Stated adding better error handling to the cmdlets