Calling script from another one and passing arguments

Hi UiPathers, im working with some script on uipath using invoke powershell activity, the process is the next: i have a main-script that call and pass argumentes to anothers secondary-scripts inside a folder, my problem is that when it goes to the second script trying to execute it it gives this error “a positional parameter cannot be found that accepts argument” “-In argument (-Folder path variable-)-”, i need help with that the scripts are the next, any helps its good. thanks!

main:

Param(

[Parameter(Mandatory=$true)] [string]$ServiceState,
[Parameter(Mandatory=$true)] [string]$Familia,
[Parameter(Mandatory=$true)] [string]$OutputFilePath,
[Parameter(Mandatory=$true)] [string]$InputFilePath

)
invoke-item .\cmd.exe $InputFilePath

secondary:

Param(

[Parameter(Mandatory=$true)] [string]$ServiceState,
[Parameter(Mandatory=$true)] [string]$OutputFilePath

)

Get-Service | Where-Object {$_.Status -eq $ServiceState} | out-file -Filepath $OutputFilePath -append
Start-sleep 10