Create a function called MyName which has 2 parameters, FirstName and LastName. Name the script Lab9_Functions_MyName.ps1. Each name is to be input separately and if either parameter is empty, output a message stating “Please enter first and last name.” Test your script like below (note the clear-host command has been disabled for this screen shot). When both parameters have been provided your output should be “Hello, _____ _____ welcome to Win2015”
↧