Code: Select all
PS C:\Working\Path> powershell.exe -command '$m=\"hello world\";write-host $m'
Code: Select all
PS C:\Working\Path> powershell.exe -command '$m=\"hello world\";write-host $m'
Code: Select all
powershell.exe -command "&{$m = \"hello world\";write-host $m}"