Format Powershell Variable

Job ID: 33486218

Budget: $10 – $30 USD

$inputnames = "['tom\\njeff\\njosh\\n']"

foreach($name in $inputnames) {
$name
}

I need you to format the above input variable in my powershell script so that when i run the script, the output (stdout) will be:
tom
jeff
josh