I am glad to help you.
To make a sudo command follow the steps :-
- Make a folder env in C:\ Drive.
- Make a folder inside the env folder named as bin.
- Now add C:\env\bin to your PATH.
- Create a file sudo.bat in C:\env\bin.
- Edit it with notepad and write this code :-
https://gist.github.com/coder-examples/5ca6c141d6d356ddba4e356d63fb2c13
Hope this will help you