Let's see how to create C#-like functions in PowerShell. With parameters for sure.
A simple guide - how to install .NET Core on Raspberry Pi 4.