Question: Write a PowerShell script that takes/receives two arguments/parameters passed to it via a command line and performs basic operations on these arguments. In particular, your

Write a PowerShell script that takes/receives two arguments/parameters passed to it via a command line and performs basic operations on these arguments. In particular, your script should:

Comprise comments on who is the author and what it supposed to do.

Receives two arguments/parameters, string and integer number, passed to it as (positional) arguments/parameters.

Displays on the screen both of these arguments with a text explaining them and the type of each of them (e.g., The first received parameter is: and its type is .).

Display the first argument as the string in upper case letters only.

Display the total length of both arguments (also with some leading text). Note that you will have to convert the second argument, which is an integer, to a string to do it.

Have a function that performs:

Displays all the processes with -ProcessName comprising string win ordered by their IDs

Call the function which you defined as an answer to the bullet directly above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!