Hello everyone I'm trying to create a script that will send a message to a network computer LAN . I 'm trying to find a way to be able to write many message in the same powershell session example a reply without opening this powershell script again, here is my script.
$message = read-host -prompt "type your message here"
$computername = Read-Host -Prompt "type a computername"
$session = "*"
msg $session /server:$computername $message
Best