Install ERPNext on Windows server

I have managed to install ERPNext on my windows Laptop using VM but I need to install it on a windows server as production env, can it work well using VM as well on the windows server? Any advice, I am new to ERPNext.

Yes. You can install it as a VM with Linux OS like Ubuntu.

How if I want to add a custom script and install it on a windows server, How can I do that?