1. Copy powershell.ps1 from \\fileserver\scripts  to  "%systemdrive%\Tools\Scripts" local computer;

    REM powershell.ps1 file
    robocopy \\filerserver\Scripts %systemdrive%\Tools\Scripts powershell.ps1

     

  2. Execute the powershell.ps1 file

    REM Execute  powershell.ps1 file
    powershell -ExecutionPolicy RemoteSigned "%systemdrive%\Tools\Scripts\powershell.ps1"


    PowerShell.exe .\powershell.ps1 %–parameter1%  1 %–parameter2% 2