PYW are GUI Python script files. They must be run by pythonw. By default Python is not installed on Windows. Usually, once Python is installed, .pyw files are executed via the Pythonw interpreter upon being double clicked.
Block the execution of PYW files. Whitelist users/groups when required.