Here is a simple approach that takes an array of strings and returns a random string that you could use for custom greetings in PowerShell:
' Hello there! ' ,
' Glad to see you! ' ,
' Happy coding! ' ,
' Have a great day! ' ,
' May the PowerShell be with you! '
$greetings | Get-Random
All you need to do is add the code to your profile script, for...