I have to get the File directory the script is in as an variable and then split into following elements: Example Path C:\Name\Season 1\script.ps1 Now what I would need is a variable that would be var1 = "Name" and var2 = "1" which needs to just take the Number from "Season 1"
Structure will always be the same --> C:\var1\Season var2\script.ps1 just different names
Thanks in adanvce for everyone willing to help me out as I have no clue on Powershell xd