I fixed this one and it gave me the second error.
- Specifying PlatformAllow just in .uplugin wasn’t enough. Added in .bat directly
-TargetPlatforms=Win64fixed this issue. - Then there was another weird error
ERROR: Visual Studio 2017 must be installed in order to build this targetlike what the hell, It is 2025 I have VS2022 with all stuff for UE, UE 5x versions are packaging and working well, whatever… Found that to fix it you add to .bat-VS2019(why not 17?). This worked.