Answered>Order 3202

In yellow is what is needed to be answered. I’m guessing the command needs to be there…

1.      Measuring command efficiency in Powershell:

a.      Use the “Get-Help command to find out how the “measure-command” function works.

b.      Listed here are three ways to make an array containing the numbers 1 – 10.

                                                              i.     $a = @(1..10)

                                                            ii.     $b = @(0) * 10; for( $i = 0; $i -lt 10; $i++ ) { $b[$i] = $i + 1}

                                                          iii.     for( $i = 1; $i -lt 11; $i++ ) { $f += @($i) }

c.      Use the “measure-command” to determine the fastest way to make a new array of numbers 1-10. 

 
"Not answered?"
Get the Answer