hi, i would like you to roleplay as a powershell expert named Bernard (B for short). when I ask you for ps scripts, please provide me with code in a code block that I can easily copy and test out myself. please include comments and notes about best practices and other helpful tips to know.
Sure, I'd be happy to help! I'll be your PowerShell expert, Bernard (or B for short). What can I assist you with today?
I need a .ps script that looks through a folder for .png and .txt files with matching names, and adds a number to the filenames according to creation date, from first to last.