{"action":"created","issue":{"url":"https://api.github.com/repos/proxb/PoshRSJob/issues/29","labels_url":"https://api.github.com/repos/proxb/PoshRSJob/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/proxb/PoshRSJob/issues/29/comments","events_url":"https://api.github.com/repos/proxb/PoshRSJob/issues/29/events","html_url":"https://github.com/proxb/PoshRSJob/issues/29","id":101754382,"number":29,"title":"Error using Start-RSJob","user":{"login":"bab5470","id":8186104,"avatar_url":"https://avatars.githubusercontent.com/u/8186104?v=3","gravatar_id":"","url":"https://api.github.com/users/bab5470","html_url":"https://github.com/bab5470","followers_url":"https://api.github.com/users/bab5470/followers","following_url":"https://api.github.com/users/bab5470/following{/other_user}","gists_url":"https://api.github.com/users/bab5470/gists{/gist_id}","starred_url":"https://api.github.com/users/bab5470/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bab5470/subscriptions","organizations_url":"https://api.github.com/users/bab5470/orgs","repos_url":"https://api.github.com/users/bab5470/repos","events_url":"https://api.github.com/users/bab5470/events{/privacy}","received_events_url":"https://api.github.com/users/bab5470/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/proxb/PoshRSJob/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/proxb/PoshRSJob/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-18T21:36:31Z","updated_at":"2015-08-22T23:20:48Z","closed_at":null,"body":"I'm trying to use Start-RSJob to kick off some code in parallel:\r\n\r\n```\r\n\t\tStart-RSJob -Name {$($backup.Name)} -Throttle 2 -FunctionsToLoad BeginBackup,MSSQLBackup,FilesBackup,EndBackup -ScriptBlock {\r\n            \r\n\t\t\t# Create a unique log file for this particular backup job\r\n\t\t\t$log=\"$ScriptDir\\logs\\corebackup\\$ScriptName $($backup.Name) $DateStamp.log\"\r\n\t\t\t\r\n\t\t\t# Begin the Backup\r\n\t\t\tBeginBackup $backup.Name $log\r\n\t\t\t\r\n\t\t\t# Backup the mssql database\r\n\t\t\tMSSQLBackup $backup.Name $backup.DBPath \r\n\t\t\t\t\r\n\t\t\t# Backup the files\r\n\t\t\tFilesBackup $backup.Name $backup.FolderName $backup.FilesPath \r\n\r\n\t\t\t# End the Backup\r\n\t\t\tEndBackup $backup.FolderName $backup.Name $log $emailTo\r\n        }\r\n\t\t\r\n\t\tGet-RSjob | Receive-RSJob\r\n```\r\n\r\nWhen I do though I get the following errors:\r\n\r\n```\r\nWARNING: BeginBackup: Cannot find path 'Function:\\BeginBackup' because it does not exist.\r\nWARNING: MSSQLBackup: Cannot find path 'Function:\\MSSQLBackup' because it does not exist.\r\nWARNING: FilesBackup: Cannot find path 'Function:\\FilesBackup' because it does not exist.\r\nWARNING: EndBackup: Cannot find path 'Function:\\EndBackup' because it does not exist.\r\n\r\nId       Name                 State           HasMoreData  HasErrors    Command\r\n--       ----                 -----           -----------  ---------    -------\r\n11                            NotStarted      False        False        ...\r\nWARNING: BeginBackup: Cannot find path 'Function:\\BeginBackup' because it does not exist.\r\nWARNING: MSSQLBackup: Cannot find path 'Function:\\MSSQLBackup' because it does not exist.\r\nWARNING: FilesBackup: Cannot find path 'Function:\\FilesBackup' because it does not exist.\r\nWARNING: EndBackup: Cannot find path 'Function:\\EndBackup' because it does not exist.\r\n12                            NotStarted      False        False        ...\r\nWARNING: BeginBackup: Cannot find path 'Function:\\BeginBackup' because it does not exist.\r\nWARNING: MSSQLBackup: Cannot find path 'Function:\\MSSQLBackup' because it does not exist.\r\nWARNING: FilesBackup: Cannot find path 'Function:\\FilesBackup' because it does not exist.\r\nWARNING: EndBackup: Cannot find path 'Function:\\EndBackup' because it does not exist.\r\n13                            NotStarted      False        False        ...\r\n```\r\n\r\nThere seems to be two issues - one it can't find the functions (which are defined above where I am calling this code) and two its not starting the jobs?\r\n\r\nIs my syntax wrong?\r\n\r\nThanks\r\nBrad"},"comment":{"url":"https://api.github.com/repos/proxb/PoshRSJob/issues/comments/133763959","html_url":"https://github.com/proxb/PoshRSJob/issues/29#issuecomment-133763959","issue_url":"https://api.github.com/repos/proxb/PoshRSJob/issues/29","id":133763959,"user":{"login":"bab5470","id":8186104,"avatar_url":"https://avatars.githubusercontent.com/u/8186104?v=3","gravatar_id":"","url":"https://api.github.com/users/bab5470","html_url":"https://github.com/bab5470","followers_url":"https://api.github.com/users/bab5470/followers","following_url":"https://api.github.com/users/bab5470/following{/other_user}","gists_url":"https://api.github.com/users/bab5470/gists{/gist_id}","starred_url":"https://api.github.com/users/bab5470/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bab5470/subscriptions","organizations_url":"https://api.github.com/users/bab5470/orgs","repos_url":"https://api.github.com/users/bab5470/repos","events_url":"https://api.github.com/users/bab5470/events{/privacy}","received_events_url":"https://api.github.com/users/bab5470/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T23:20:48Z","updated_at":"2015-08-22T23:20:48Z","body":"Any thoughts on transcription?\r\n\r\nThanks\r\nBrad"}}