casting function params for PowerShell