I can right click on the DEC16.bat file and it will run. I am having trouble including it in a script to run from a flash drive. The PowerShell script essentially copies over a bunch of install files onto a client's computer.
Windows PowerShell Copyright (C) 2013 Microsoft Corporation. All rights reserved. PS H:\> $script = "\\xxxhsfmsl03\adap\Database\Install\AugKA\DEC16.bat" PS H:\> PS H:\> Start-Process powershell -Credential “xxx\xxxvis_desktop” -ArgumentList '-noprofile -command &{Start-Process $script -verb runas}' Start-Process : This command cannot be run due to the error: The directory name is invalid. At line:1 char:1 + Start-Process powershell -Credential “xxx\xxxvis_desktop” -ArgumentList '-noprof ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand PS H:\> $script \\xxxhsfmsl03\adap\Database\Install\AugKA\DEC16.bat PS H:\> (I have inserted "xxx"'s to protect the innocent)