I have a small script that refreshes a users profile. Occasionally I need to run the script on a large number of users which takes some time because I need to type each one individually.
PS C:\> . .\Scripts\CustomScript.ps1 PS C:\> FunctionCall "user1" PS C:\> FunctionCall "user2"
Also not as important but sometimes a function will fail if and report an error. Can that text be captured?