Windows EC2 batch script in user_data_base64, AWS

user_data_base64 = base64encode(filebase64(“build/Windows_network_adp.bat”))

contents of Windows_network_adp.bat:
netsh interface ipv4 set address name=“Ethernet 3” static ... ...

Script works with user data manually when pasted into to the AWS console EC2 User data.
But when trying to automate and launch it with terraform and user data it doesnt perform its function of setting a static IP address on the second interface. It doesnt fail. It just doesnt do its job. Any help is greatly apreciated.