Error: mvnw cannot run if the user name has space characters

Let's say your windows user name has a space e.g. "james bond".

When you run the PowerShell command ./mvnw , you may get an error

"C:/Users/James" not being recognized. It seems that the space has split the name.