Powershell remote execution with parameters
Invoke-Command -ComputerName "computer-name" -FilePath "path\to\local\script.ps1" -ArgumentList "Argument1","Argument2"
Sample script.ps1
param (
[Parameter(Position=0)][string]$param1,
[Parameter(Position=1)][string]$param2
)
Write-Output "Param1: $param1, Param2: $param2"