public PSExecutor(ConfigurationService config, ILogger logger) { _scriptPath = config.GetSetting("scriptpath", Path.GetDirectoryName(typeof(PSExecutor).Assembly.Location)); _logger = logger.ForContext <PSExecutor>(); }