I have a couple of functions I want to build out in a script file.
How can I call the functions from the command line using arguments? I know how to do this for variables but not for functions.
Here is my code so far:
param (
    $test
)
function Powershellversion{
    $PSVersionTable.PSVersion
}
$test = Powershellversion
I want something like this:
> powershelltests.ps1 Powershellversion
Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      1      3                  
Instead I get this:
> powershelltests.ps1 Powershellversion
# Nothing shows up
Thank you for your time,
