i want to run npm command in each folder
Get-ChildItem -Directory -Filter "desiredFolder" | ForEach-Object {&npm install}
Problem i am experiencing is that npm command runs from root folder where is script not from each folder from foreach. How can I fix it?