I have tried suggestion postd here ( https://stackoverflow.com/a/52517718/10011235 ) by Sire. I have replaced cmd.exe with my bat file location. But it did not work.
AsAdmin.bat content :
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%temp%\userfile.bat", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
here userfile.bat contains netsh command.
Any help is much appreciated !