feat: allow arguments to spawn

This allows setting all values child_process.spawn supports, such as cwd
and environment variables.