Problemas con Invoke-Command al instalar software en el servidor remoto

Necesito instalar una aplicación en varios servidores remotos en modo silencioso. He creado un script (Installer.ps1) como el siguiente usando Powershell v3.0:

param(
[String] $ServerNameFilePath = $(throw "Provide the path of text file which contains the server names"),
[String] $InstallerFolderPath = $(throw "Provide the Installer Folder Path. This should be a network location"),
[String] $UserName = $(throw "Provide the User Name"),
[String] $Password= $(throw "Provide the Password")
)
Function InstallApp
{
    $secpasswd = ConvertTo-SecureString $Password -AsPlainText -Force
    $mycreds = New-Object System.Management.Automation.PSCredential ($UserName, $secpasswd)

    $ScrBlock = {param($InstallerFolderPath) $ExePath = Join-Path $InstallerFolderPath "ServerReleaseManager.exe";  & $ExePath /q;}
    Invoke-Command -ComputerName (Get-Content Servers.txt) -Credential $mycreds $ScrBlock -ArgumentList $InstallerFolderPath

}

InstallApp -ServerNameFilePath $ServerNameFilePath -InstallerFolderPath $InstallerFolderPath -UserName $UserName -Password $Password

Luego llamo al script como se muestra a continuación (la ruta de la carpeta del instalador puede tener espacios en blanco y el ejecutable ServerReleaseManager.exe acepta el argumento):

.\Installer.ps1 -ServerNameFilePath Servers.txt -InstallerFolderPath "\\TestServer01\Public\Stable Applications\Server Release Manager Update 2\2.7" -UserName "Domain\User" -Password "Test123"

Me estoy poniendo abajoCommandNotFoundException siempre:

The term '\\TestServer01\Public\Stable Applications\Server Release Manager Update 2\2.7\ServerReleaseManager.exe' is not recognized as the name of a cmdlet, function, script file, or 
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

He probado otras opciones como usar -FilePath conInvoke-Command Pero el mismo error. Estoy realmente bloqueado aquí. ¿Puede decirme por qué se muestra este error? ¿Cómo resolver el error? ¿O hay mejores formas de lidiar con esto? Gracias por tu ayuda.

Respuestas a la pregunta(0)

Su respuesta a la pregunta