[CmdletBinding()] param ( [string] $Name, [int] $Age ) Write-Host -Object "Hi $Name!","You are $Age years old!"; Then to call the script: .\test.ps1 -Name Trevor -Age 28; Parameters don't have to be named. You can use $args[n] instead.