PowerShell can execute Ruby which can execute CocoaPods on Windows, but really, if that was a viable solution I wouldn't have gone through the pain of creating such a complicated setup to make it run. the CocoaPods master repo hosts countless user-supplied modules, 99% of which are submitted from an operating system which uses a POSIX-compliant filesystem. What happens when you try to download pods from Windows on a Windows filesystem is that you too often end up with failures because, for example, a random chinese guy created a pod whose name ends with a space character, and that is illegal as a file/directory name on Windows. Or the name contains a slash, or a colon, and Windows can't create it. Or a pod hosts files with very long names in a great number of nested subdirectories which makes the total absolute pathname exceeds the MAX_PATH limit on Windows which is 260 characters. Or...
The only restriction for file names on a POSIX filesystem is that the file names must not contain a slash, which is the directory separator character.
On Windows, the restrictions are many. The filename must not exceed a certain length, it must not contain a dozen forbidden ASCII characters : slashes, backslashes, colons, etc ; it must not *end* with some characters (spaces for example), and its total path from the drive root must not exceed 260 characters. This is just impossible to make CocoaPods work reliably when it runs natively on Windows. Hence the VM.
Looking at what can print "Parameterformat falsch - <something>" among the Windows tools I think it's the "chcp" tool. Its output format changed recently (a very bad thing!) and now it includes a dot. https://github.com/python/cpython/issues/78325
The script tries to store the current codepage by parsing the chcp tool output. It already strips spaces:
% cocoapods.cmd line ~40
rem // get the current codepage
for /f "tokens=2 delims=:" %%a in ('chcp') do set ORIGINAL_CP=%%a
set ORIGINAL_CP=%ORIGINAL_CP: =%
%
but your situation tells me that it should also strip dots from the output:
% cocoapods.cmd line ~40
rem // get the current codepage
for /f "tokens=2 delims=:" %%a in ('chcp') do set ORIGINAL_CP=%%a
set ORIGINAL_CP=%ORIGINAL_CP: =%
set ORIGINAL_CP=%ORIGINAL_CP:.=%
%
Try this patch and let me know what it does please.