1 | initial version |
Assuming the CSV file contains two columns named "Column1" and "Column2", and the two distinct commands to be executed are "Command1" and "Command2", the following PowerShell script can be created:
$data = Import-Csv "path\to\file.csv"
foreach ($row in $data) {
$value1 = $row.Column1
$value2 = $row.Column2
Command1 $value1
Command2 $value2
}
Explanation:
Note: Replace "Command1" and "Command2" with the actual commands to be executed, and replace "path\to\file.csv" with the actual path to the CSV file.