This may not be possible but it would be nice if variables could be passed in the -WebSchema parameter of New-Flancy:
$thing = "SomeText"
New-Flancy -WebSchema {
Get "/" {
$thing
}
}
The only reason I did this was because things like $PSScriptRoot don't seem to exist in the scope of those cmd blocks.