How does one run a background process in powershell on windows 7? The answers here: Powershell equivalent of bash ampersand (&) for forking/running background processes refer to *-psjob commands which seem to no longer exist.
I have found one other reference through google to psjob being missing, but no solutions.
Edit: apparently the solution involves a command called start-job.
UNFORTUNATELY it's not clear how to run a programme that takes parameters. I'm trying to run "rails server". When I just type rails server
at the prompt, rails runs just fine, but it blocks my shell. I've tried various ways of invoking rails with the server argument, such as:
start-job -scriptblock {rails server}
start-job -scriptblock {"rails server"}
start-job -scriptblock {rails "server"}
start-job -scriptblock {rails} -argumentlist server
start-job -scriptblock {rails} -argumentlist "server"
start-job -scriptblock {rails $args[0]} -argumentlist server
start-job -scriptblock {rails $args[1]} -argumentlist server
start-job -scriptblock {rails $args[0]} -argumentlist @("server")
all to no avail