Hello
At present, there is no support for making batch files on the forum.
But here is a similar case for you, you can use it as a reference:
https://stackoverflow.com/questions/47336090/how-do-i-enable-password-complexity-in-batch
Best Regards,
Wesley Li