An Ansible Script to shutdown windows remotely using Ansible built in community module
Ansible
windows