void AddScriptDirectoryToEnvironmentPath(string directory) { var environmentPath = new PowerShellSessionEnvironmentPath(Session); environmentPath.Append(directory); }