How to make TTY mode auto-login shortcut to run script

Aveva PDMS arguments:

%pdms_installed_dir%\pdms.bat [mode] [project] [UN/PW] [MDB] [Load Method]

Sample:

%pdms_installed_dir%\pdms.bat TTY SAM SYSTEM/XXXXXX /PIPE $M/%dir_location%\scriptName.pmlmac

Aveva E3D arguments:

CALL “C:\Program Files (x86)\AVEVA\Everything3D2.10\mon.exe” PROD E3D init “C:\Program Files (x86)\AVEVA\Everything3D2.10\launch.init” TTY XXX SYSTEM/XXXXXX /MDB $m/macroPath