Here is the simple batch file which I used for installing softwares remotely in Windows

@ECHO OFF
net use u: \serverinstall$package.msi
REM 0=none, 1=one of the groups
rem if ERRORLEVEL 1 goto apac%errorlevel%
rem If NOT ERRORLEVEL 1 goto END
rem :apac
IF EXIST ā€œC:Program FilesPackagepackage.msi ā€ GOTO END
ā€œ\serverinstall$package.msi /S /v /qnā€
:END
net use u: /DELETE