at the moment i install a programm to a remote machine with batch. thats already working fine. but how can i use or "convert" the batch command below in powershell using the specific command for the prgramm to install it silent on the remote machine? this is my batch code.
set /p target=hostname
echo.
copy /z "\\server1\tool.exe" "\\%target%\C$\temp"
echo.
PsExec.exe \\%target% cmd /c "\\%target%\C$\temp\tool.exe" /verysilent
set /pto aRead-Host, and the parameter forcopy. The rest should work.