If I understand you correctly, you have a list of names of data frames and you want to use that to operate on each data frame. Here is a toy example of doing that using the get() and assign() functions.
library(dplyr)
library(purrr)
#invent two data frames and a vector of their names
DF1 <- data.frame(A = 1:3)
DF2 <- data.frame(A = 2:4)
DFnames <- c("DF1", "DF2")
RenameFunc <- function(Nm) {
tmp <- get(Nm)
tmp <- tmp |> rename(B = A)
assign(Nm, tmp, envir = .GlobalEnv)
}
walk(DFnames, RenameFunc)