title: Issues with function context in Office Scripts
body: <p>I am having an issue calling a function into the main script whilst maintaining the excel context</p>
  
  <p><code>async function main(context: Excel.RequestContext){
  findMD(1)
  }</code></p>
  
  <p>The function <code>findMD(test)</code> contains various ranges which draw from <code>context.workbook</code> and due to the function being defined outside of <code>main</code> I'm getting a <code>cannot find name 'context'</code> error.
  To try and solve this I changed  <code>function findMD(test){</code> to <code>async function findMD(context: Excel.RequestContext,test){</code>. However whilst it has solved the context errors I can still not run the script because the function call <code>findMD(1)</code> is now getting an error message of <code>Expected 2 arguments but got 1</code></p>
  
  <p>Would seriously appreciate any assistance one could offer as this is killing me!
  Thanks!</p>