I’m trying to create a dead simple function in my profile that I can simply type “log something I just did”. The log will be the function name and the “I just did” will be some note. I realize I can easily just wrap the “I just did” in quotes and make this work but I want something that I can extremely quick just jot down a note. I know myself. If I have to worry about putting quotes around the “I Just did” string, I’ll mentally resent it.
Anyone know of a way I can just type this line: log this is a note
…and pass “this is a note” as a string or another datatype that I can convert to a string that I can turn around and add to a text file? How would I tell Powershell to treat “this is a note” as a single parameter instead of 4 separate parameters?