I try to create a PowerShell script doing other things after creating a new spfx project with the Yeoman SharePoint Generator.
The code for Yeoman is:
yo @microsoft/sharepoint --component-type "webpart" --component-name $componentName --solution-name $solutionName --framework "react" --skip-install
After the code runs PowerShell pauses showing a Yeoman completion screen
Congratulations! Solution xxx is created. Run gulp serve to play with it!
and it does not continue with any command afterwards. If I hit any key, it does continue.
Is there any way to continue without user interaction? Do you have any idea?