{"action":"opened","issue":{"url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/11","repository_url":"https://api.github.com/repos/tenable/Posh-Nessus","labels_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/11/comments","events_url":"https://api.github.com/repos/tenable/Posh-Nessus/issues/11/events","html_url":"https://github.com/tenable/Posh-Nessus/issues/11","id":186409334,"number":11,"title":"New scan doesn't add a custom policy","user":{"login":"leunammejii","id":12433311,"avatar_url":"https://avatars.githubusercontent.com/u/12433311?v=3","gravatar_id":"","url":"https://api.github.com/users/leunammejii","html_url":"https://github.com/leunammejii","followers_url":"https://api.github.com/users/leunammejii/followers","following_url":"https://api.github.com/users/leunammejii/following{/other_user}","gists_url":"https://api.github.com/users/leunammejii/gists{/gist_id}","starred_url":"https://api.github.com/users/leunammejii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leunammejii/subscriptions","organizations_url":"https://api.github.com/users/leunammejii/orgs","repos_url":"https://api.github.com/users/leunammejii/repos","events_url":"https://api.github.com/users/leunammejii/events{/privacy}","received_events_url":"https://api.github.com/users/leunammejii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T21:55:40Z","updated_at":"2016-10-31T21:55:40Z","closed_at":null,"body":"Adding the `policy_id` key and value to the `$settings` in the `New-NessusScan` function allows one to apply a custom policy. I added the following on `line 1384 in Scan.ps1`:\r\n```powershell\r\nif ($PolicyId) {$settings.Add('policy_id',$PolicyId)}"}}
{"actor":{"display_login":"leunammejii"}}