Convert it to what? It's already perl, you should be able to just run it, after you've installed perl itself. If you're on Windows, and you can't upgrade your OS to Linux, try Strawberry Perl. Download it, install it, and possibly install the extra module (I suspect "cpan -i Math::Random::Secure" has a good chance of working), and then you can just run "perl pwgen" to get your generated password.
By the way, this site doesn't allow users to attach binary files (or any other files). So, even if we created an executable out of this, we can't post it here.