Advertisement
kriath

Script Test

Jun 13th, 2020
1,433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function Service-Request {
  2. $contact = Read-Host 'Contact method (Call / Walk-In)'
  3. $requestor = Read-Host 'Requesting user'
  4. $department = Read-Host 'Users department'
  5. $location = Read-Host 'Location of issue'
  6. $bpoc = Read-Host 'Best point of contact'
  7. $details = Read-Host 'Details of request'
  8.  
  9. Write-Host ''
  10. Write-Host 'Compiling into template...'
  11. Write-Host ''
  12.  
  13. $template = Write-Host "[b]Contact Method:[/b] $contact "`n"[b]Requestor:[/b] $requestor "`n"[b]Department:[/b] $department "`n"[b]Location:[/b] $location "`n"[b]BPOC:[/b] $bpoc "`n""`n"[b]Request Details:[/b] $details"
  14. Write-Host "$template"
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement