Powershell Verifiable in none-Powershell Command
I have a powershell script that does a few bit. I need it so a none powershell program (a .exe) will pickup a powershell Verifiable (is that the word)
Creating the folder works (just an example). It used the username entered when the script is run. How do i get the $username into the program.exe command further down?
$username = Read-Host "Enter Username"
new-item -itemtype directory -path "C:\$Username
program.exe -t domain\$Username