Im new to powershell and Ive been trying to convert this string to a timespan object:
"2 Days 1 Hour 15 Minutes"
Ive tried several ways to input the format using parseexact but I cant seem to get the right format down.
Ive tried something like this :
[TimeSpan]::ParseExact('2 Days 1 Hour 15 Minutes', 'd \Days h \Hour MM \Minutes', $null)