I need to pass parameters to PowerShell script that runs using Windows Scheduled Task.
Scheduled Task runs from Azure pipeline using cmd Start-ScheduledTask -TaskName "ExampleTask*" command
Scheduled Task has PS script like this:
param(
[Parameter(Mandatory = $true)]
$var
)
echo $var
And I need to change $var dynamically from Azure DevOps pipeline.
Are there any ways to do this?
