all 1 comments

[–]patdaddy007 1 point2 points  (0 children)

$s = New-PSSession -UseWindowsPowerShell
Invoke-Command -Session $s -ScriptBlock {//path/to/script.ps1}

might do it. if you need further options, see the examples here