Install Vagrant. Follow the instructions here.
Clone the repo:
git clone [email protected]:tuxonfire/windowsvagrant.git
cd windowsvagrant/
vagrant up
Details about the script can be read below link, and can be used to set up the basics on WIndows 2019 (i think is free for 90 days). This script sets up both HTTP and HTTPS listeners with a self-signed certificate and enables the 'Basic' authentication option on the service.
https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup