in reply to Windows 10 Command Prompt

Just run a shell command which invokes Perl then does "exit." No point in calisthenics to "do it all in Perl."