Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Function Why() {
  2. ""
  3. return "Well I tried."
  4. }
  5.  
  6. Write-Host "Starting test."
  7. $theBigQuestion= Why
  8. Write-Host $theBigQuestion
  9. Write-Host "Ending test."
  10.  
  11. Starting test.
  12.  
  13. Well I tried.
  14. Well I tried.
  15. Ending test.
  16.  
  17. Function Why() {
  18. ""
  19. return "Well I tried."
  20. }
  21.  
  22. 25> $r = why
  23. 26> $r.GetType()
  24.  
  25. IsPublic IsSerial Name BaseType
  26. -------- -------- ---- --------
  27. True True Object[] System.Array
  28.  
  29. 27> $r[0].Length
  30. 0
  31.  
  32. 28> $r[1]
  33. Well I tried.
  34.  
  35. Function Why() {
  36. Out-Null ""
  37. return "Well I tried."
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement