Question: Make a PowerShell script that.. a) Is run with a parameter that represents the name of the person running the script. When the script runs,

Make a PowerShell script that.. a) Is run with a parameter that represents the name of the person running the script. When the script runs, the output starts with a greeting with that name. For example, if I ran the script with the parameter of "Jonathan," the script would start by displaying "Hello, Jonathan!" b) Asks a user for a number and stores it in a variable. c) Asks the user if they want to double or square the number. d) Performs the operation on the numbers selected and displays the output properly. Invalid input should be dealt with accordingly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
