Hello powershell experts,
I have a question, I want to take multiple variables in a list and pass those variables in list to a single command. And i want that command to work for each variable in link.
Here’s what i did, but that clearly don’t work.
Write-Host “enter Users you want to search”
$User1 = Read-Host "user1 = "
$User2 = Read-Host "user2 = "
$User3 = Read-Host "user3 = "
$Users = @($User1, $User2, $User3)