BypassNRO is actually an NT command script, not a DOS batch file. It’s actually a .cmd, which actually sets a registry value and reboots the system (probably the only bit of the Windows core I am aware of that is open source).
Also the Panther (the codename for the boot.wim installer) Setup has some really basic partitioning tools. You can create a smaller partition, delete, format, and that’s it. You have to use DiskPart or Disk Management to do more.