how to pass multiple parameters into a function in powershell

Example

    
Function MyFunc([int]$arg1, [string]$arg2)
{
    Write-Host "`$arg1 value: $arg1"
    Write-Host "`$arg2 value: $arg2"
}
MyFunc("123") ("ABCD") #call the function
MyFunc 123  ABCD  #call the function with spaces
    

Copy and Try it

Run Example: