fn check_pipeline_name_exists(pipeline_name: Option<String>) -> Result<String>
Check if the pipeline_name exists