public void Run(ILogger logger) { if (string.IsNullOrEmpty(_config.Uri)) { logger.Warning($"Skipping task '{_config.Description}' as no uri is set for the task."); return; } string powershellFilePath = ParseUri(_config.Uri, logger); if (!string.IsNullOrEmpty(powershellFilePath)) { if (!_powershellRunner.RunFile(powershellFilePath)) { logger.Error($"An error occurred running {powershellFilePath} - see previous errors."); } } }