public PowerShellExecutor(IPowerShellSessionFactory powerShellSessionFactory) { if (powerShellSessionFactory == null) { throw new ArgumentNullException("powerShellSessionFactory"); } this.powerShellSessionFactory = powerShellSessionFactory; }