echo off

goto(){
# Linux code here
echo UNIX-compatible code goes here
echo -n 'Found OS Type: '
uname -o
uname -m
will return arm64 as opposed to x86_64
# NOTE: Before continuing here, check if running under Linux/BSD/MacOS.
# If MacOS, check if x86 or arm.
# The TCL or Lua interpreter + script should be probably be downloaded at this point.
# For any OS: Whatever is available: wget, curl, fetch
sleep 5
if [[ -z "$@" ]]; then
  echo "No argument was detected. Project argument is required."
  sleep 5
  exit
else
  ./linux_launch.sh $@
fi
}

goto $@
echo "End of Linux function."
exit

:(){
rem Windows script here
echo MS Windows-compatible code goes here
echo.Found OS Type:
echo %OS%
rem NOTE: Before continuing here, check if running under MSYS2 or MINGW64.
rem In that is the case, 'sleep' should be used instead of 'timeout'.
rem The TCL or Lua interpreter + script should be probably be downloaded at this point.
rem The TCL or Lua script does a much better/easier job to distinguish between platforms.
rem For CMD: bitsadmin
rem https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/bitsadmin
rem For PowerShell: Invoke-WebRequest
rem https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.4
rem For MSYS2/MINGW64/GYGWIN: wget or curl, whatever is available
timeout /t 5
set ARG=%1
echo %ARG%
if [%ARG%]==[] goto NOARG
timeout /t 5
start /wait cmd.exe /c ".\master_launch_1.bat %ARG%"
goto EOF
:NOARG
echo.No argument was detected. Project argument is required.
:EOF
echo.End of Windows function.
timeout /t 5
