I am creating a powershell script and need some help. I need to create an array and attach it to a string.
I have 3 required parameters
$printername
$start
$end
So if user enters the following for the 3 parameters: hp, 1, 5 I need to attach the following to a string called $printers $printers = hp1 hp2 hp3 hp4 hp5.
If they entered 1000 for the last parameter this would have to go through hp1000
How can I create this array.