Extract validation to dll for execute shell command
Fix comments