Don’t use $input in PowerShell Functions!
Just a short post and a gentle reminder to check conventions before pulling my hair out over a simple issue.
This all started when I wanted to test something simple in PowerShell. I had started using C# more often and I think this is what caused my brain just to use $input as I would normally use something like this in C#.
In C# my test functions (or methods) might look something like this:
public string TestFunction(string input){
Console.WriteLine(input);
}