Since 1.9 I noticed that Ansible runs the Windows modules/scripts without specifying Unrestricted execution policy. The change was made in a this commit: https://github.com/ansible/ansible/commit/07dfbaedc30944857afc32cf2d3303d46b9cf3c9
I noticed that in the v2 folder Execution Policy is still set to Unrestricted. So my question is - is the removing of “-ExecutionPolicy Unrestricted” intentional or can be considered bug?
Yep, it's a bug. Fixed in https://github.com/ansible/ansible/pull/10664