PowerShell
$( cmd /C "powershell -Command .\TargetSscript.ps1 args" <
RemotePC上で任意のコマンドを実行する 以下のPowerShellスクリプトをファイルとして保存する。 ここでは「RemoteCommand.ps1」とする。 Param( $computer, $username, $passwd, $command ) $password = ConvertTo-SecureString $passwd -asplaintext -force…