Considering the PowerShell code example here:

It has [CmdletBinding()] on top of the .ps1 scipt file.
Please note that [CmdletBinding()] is on top of the file, not the function.
How do I call this file from commandline and assign values to the parameters?
What is the name of this technique, so I can search and learn more about the concept?