I'm running a PowerShell script during a TFS 2015-based deployment. It won't run because PS thinks it needs user interaction, but, when I copy-and-paste the command and arguments into the PS console and call it directly, it works exactly as expected (with no user input).
Any suggestions? Thanks.
This is the top. I can't include more due to licensing reasons:
[CmdletBinding()]
param(
[ValidateNotNullOrEmpty()]
[String]
$LocalDataPath, # .
[ValidateNotNullOrEmpty()]
[String]
$ApiEndpointUrlPrefix, # http://hostname/ReportServer
[ValidateNotNullOrEmpty()]
[String]
$DataSourceUrlRelPath = "Data Sources",
[ValidateNotNullOrEmpty()]
[String]
$DatasetUrlRelPath = "Datasets",
[ValidateNotNullOrEmpty()]
[String]
$ReportUrlRelPath = "Reports",
[ValidateNotNullOrEmpty()]
[String]
$RootUrlAbsPath = "/Root"
)