0 0

Execute remote batchfile of PowerShell

PsExec64.exe \\192.168.1.123 C:\batchfile.cmd

PsExec64.exe \\192.168.1.123 powershell.exe -ExecutionPolicy Bypass -File "C:\script.ps1"