When you use Start-Job it starts a completely new process. This means it doesn't have access to any variables declared outside of the scriptblock you pass in (maybe access to global variables, but i wouldn't use globals)
Change your function to accept…